-
Notifications
You must be signed in to change notification settings - Fork 55
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
Unity Plugin: Make CreateAndConfigureWebView public and add parameters #3722
Comments
Thanks for raising the request. We will investigate and evaluate. |
Hi @ArDevKarl I am assuming you are referring to this Unity function https://developer.vuplex.com/webview/IWebView? It might be possible that they Unity uses WebView2 underlying their webview, but we don't have control over their API surfaces. You would likely need to file a bug report with them instead. Let me know if I'm getting your request wrongly though! |
No, I'm not using Unity or Vuplex code. I'm using the MS Mixed Reality WebView 0.17.1-pre.5 without any third party code/plugins. This Plugin contains the class "WebVew" with the method "CreateAndConfigureWebView()". I don't know where to suggest this, but here. Is there a Git for the Unity Plugin from Microsoft? |
Ah - thank you for clarifying that you are using MS Mixed Reality WebView. Are you referring to this https://learn.microsoft.com/en-us/windows/mixed-reality/develop/advanced-concepts/webview2-unity-plugin? In that case this should be the right place. I will investigate this for you. |
@victorhuangwq Yes, thats the plugin I'm talking about |
Any instance of the class WebView will be initialized using the resolution 1280x720 and will show the MS Webite by default. This means that any WebView will always be inststantiated using these parameters. To change these parameters, IWebView.Load() and IWebView.Resize() need to be called.
The problem is, that "CreateAndConfigureWebView();" is called in Awake(), so there is no way to change any varialbes before the WebView is created.
It would be very helpful, if "CreateAndConfigureWebView()" can be called from outside using paramenters (uri, width, height) instead of calling it in Awake() with default variables.
The text was updated successfully, but these errors were encountered: