gree / unity-webview

zlib License
2.23k stars 684 forks source link

A duplicate WebView window is displayed at the bottom left of the screen in macOS. #1066

Open yogi-chaturvedi opened 3 months ago

yogi-chaturvedi commented 3 months ago

In macOS, a duplicate window appears at the bottom left of the screen. Is this intentional? When I attempt to resize this window, the content inside my main window shifts. Please see the attached screenshot.

Screenshot 2024-04-16 at 8 36 26 AM Screenshot 2024-04-16 at 8 39 48 AM

Is this intentionally done? I am trying to run the sample app and encountered with this issue.

@KojiNakamaru I also need your advice on the following points:

  1. We plan to use this in a production app. How much do you recommend it for a production environment?
  2. Another issue I've noticed is with the input box; the cursor is not visible.
KojiNakamaru commented 3 months ago

Thank you for the report, it is not intentional. I fixed it in #1067 and updated binaries.

We plan to use this in a production app. How much do you recommend it for a production environment?

Though it depends on how the plugin will be used, I basically don't recommend. The implementation has been utilized mainly for debugging and at least I and my collegues have never used it in production. It cannot treat well key inputs (especially CJK inputs) and may have other limitations. It is better to check other more complete solutions such as discussed in https://github.com/gree/unity-webview/issues/1057#issuecomment-2003179007 .

Another issue I've noticed is with the input box; the cursor is not visible.

Yes, it is one of limitations of the current implementation: https://github.com/gree/unity-webview/issues/1059#issuecomment-2028526520 .

yogi-chaturvedi commented 2 months ago

@KojiNakamaru Thank you for the prompt response.

Thank you for the report, it is not intentional. I fixed it in https://github.com/gree/unity-webview/pull/1067 and updated binaries.

I will check and update here.

It is better to check other more complete solutions such as discussed in https://github.com/gree/unity-webview/issues/1057#issuecomment-2003179007 .

We've already looked into the 3D WebView plugin you recommended, but it doesn't support macOS with Apple Silicon chips.

I apologize for the inconvenience. Do you have any other plugin recommendations that support macOS and Windows? We are not targeting mobile platforms at the moment.

KojiNakamaru commented 2 months ago

The same developer provides a plugin for macOS/Windows, too:

https://assetstore.unity.com/packages/tools/gui/3d-webview-for-windows-and-macos-web-browser-154144

yogi-chaturvedi commented 2 months ago

@KojiNakamaru I was referring to this only. It does support macOS x64 architecture (Intel-based) but doesn't currently support arm64 (Apple Silicon-based) systems.

KojiNakamaru commented 2 months ago

Ah, sorry. https://store.vuplex.com/webview/windows-mac however describes the following:

On macOS, the dynamic library used by the Unity process is a universal library that supports both x64 Intel and arm64 Apple Silicon CPUs. The executable for the Chromium process is currently x64 only but runs successfully on arm64 Apple Silicon Macs via Rosetta.

Therefore Rosetta is still required but the application itself can be apple silicon-based. Also, as recent CEF (Chromium Embedded Framework) daily builds provide apple-silicon binaries, you could contact the developer about apple-silicon support of the chromium process.

yogi-chaturvedi commented 2 months ago

Thanks for your time, @KojiNakamaru . I've reached out to the developers, and they plan to provide support by the end of this year. That's why I was considering using this library as an alternative until then.

KojiNakamaru commented 2 months ago

Vuplex's solution is much more complete one than this plugin. Personally it seems insignificant that the chromium process requires Rossetta.