-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 Toolkit Workaround #14754
Unity Toolkit Workaround #14754
Conversation
Workaround to temp disable the Unity Toolkit scripts loading from playground loadScriptAsync. But load from BABYLON.Tools.LoadScriptAsync while debugging the issue
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). |
Snapshot stored with reference name: Test environment: To test a playground add it to the URL, for example: https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14754/merge/index.html#WGZLGJ#4600 Links to test babylon tools with this snapshot: https://playground.babylonjs.com/?snapshot=refs/pull/14754/merge To test the snapshot in the playground with a playground ID add it after the snapshot query string: https://playground.babylonjs.com/?snapshot=refs/pull/14754/merge#BCU1XR#0 |
Instead of merging this, let's find out what is wrong with the loadScript function. Can you reproduce that so I can debug this with you? |
Yo @RaananW ... I found two issues...
The second is that the Tools.LoasScriptAsync which is an async wrapper for the Tools.LoadScript does not pass the scriptID thru to the underlying Tools.LoadScript. So I fixed the Tools.LoadScriptAsync like so:
That should fix things :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm good with the changes, once you fix the missing docs :-)
What missing docs ? |
Just check the files, the error is there. You are missing code doc of one variable |
I see now, sorry... Fixed missing param doc |
Workaround to temp disable the Unity Toolkit scripts loading from playground loadScriptAsync. But load from BABYLON.Tools.LoadScriptAsync while debugging the issue