Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yogi-chaturvedi opened this issue Apr 16, 2024 · 7 comments

Comments

@yogi-chaturvedi
Copy link

yogi-chaturvedi commented Apr 16, 2024

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
Copy link
Member

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 #1057 (comment) .

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: #1059 (comment) .

@yogi-chaturvedi
Copy link
Author

yogi-chaturvedi commented Apr 16, 2024

@KojiNakamaru Thank you for the prompt response.

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

I will check and update here.

It is better to check other more complete solutions such as discussed in #1057 (comment) .

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
Copy link
Member

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
Copy link
Author

@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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants