Open sangpan opened 2 years ago
I tried to refine the osx implementation in #806 and updated binaries. It should run more smoothly compared with the last version. Please note, however, the osx implementation is still tricky/experimental and has various limitations about event handling and/or movies. You can find other better solutions on Asset Store (cf. https://github.com/gree/unity-webview/issues/612#issuecomment-724541385 ).
Ah osx experimental.. thank you for response.
anyway.. I tried to apply this plugin to UNITY 2019.4.32 ( Run on macOS 12.3.1)
More detailed about what is problem.
I understood this original source logic like below:
has some problem. draw screen speed is normal, but international language input is broken. (IME composition is ignored, ex: Korean, Chinese, or Japanese)
then I tried to fork repository and modify some logic showing webview .
just showing native webview itself.
But getting slow when try to input internation characters . and be normal after change to english input mode.
I am looking for resolve or avoid this slow running....
I've tried your approach, i.e., [NSApp.mainWindow.contentView addSubview:webView]
. As you reported, Event handling didn't work well. For osx, "unity as a library" is not available so it should require a long time to seek a good solution. If you get any clue, please let me know.
this problem reported to Unity. https://issuetracker.unity3d.com/issues/macos-wkwebview-has-delayed-inputs-when-using-non-english-characters
reproduce Video : https://youtu.be/bSBh88YvSPY
But
They said..
tried to belows. But can't resolve.
Anyone with other opinions?