-
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
UWP/Unity: Unity crash when trying to instantiate the WebView as child or with scale zero #3721
Comments
Thanks for reporting the issue. @michaelfarnsworth could you please take a look? |
@ArDevKarl I'd double-check that WebView control is ready. You can register a callback via |
Ah thank you, that worked! Please, make sure to throw an Exception everytime WebView is called while not ready. |
@ArDevKarl Was this a request directed to the WebView2 team? |
@ArDevKarl similarly, would you be referring to the Unity's WebView API in this request as well? If so, I would be closing this issue accordingly. |
@victorhuangwq Like in the other post #3722 I'm talking about this: I'll create a Feature Request about this issue. EDIT: #3746 |
Hi @ArDevKarl, Closing this issue since the feature request is being tracked in #3746. Thanks! |
Description
I'm trying to use the WebView a child of a root object. Therefore I created a Prefab that contains the class "WebView" and its requirements. I want this Prefab to be instantiated as child of another transform and to be at scale = Vector3.zero on initialization.
The Prefab contains a helper class that handles all visial components. Here I want to setup the WebView as child and scale it:
If I maintain the scale and not change the parent of the WebView Unity or the application won't crash.
Version
WebView2: 0.17.1-pre.5
Unity: 2022.3.7f1
Repro Steps
Instantiate a WebView Prefab and try to change it's parent or scale it to zero.
The text was updated successfully, but these errors were encountered: