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

Unity Plugin: Make CreateAndConfigureWebView public and add parameters #3722

Open
ArDevKarl opened this issue Aug 18, 2023 · 5 comments
Open
Assignees
Labels
feature request feature request

Comments

@ArDevKarl
Copy link

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.

@ArDevKarl ArDevKarl added the feature request feature request label Aug 18, 2023
@ArDevKarl ArDevKarl changed the title Unity Plugin: Setup WebView custom parameters Unity Plugin: Make CreateAndConfigureWebView public and add parameters Aug 18, 2023
@novac42
Copy link
Contributor

novac42 commented Aug 18, 2023

Thanks for raising the request. We will investigate and evaluate.

@victorhuangwq
Copy link
Collaborator

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!

@ArDevKarl
Copy link
Author

ArDevKarl commented Aug 29, 2023

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!

@victorhuangwq

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?

@victorhuangwq
Copy link
Collaborator

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.

@ArDevKarl
Copy link
Author

@victorhuangwq Yes, thats the plugin I'm talking about

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

No branches or pull requests

5 participants