You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
I'm having trouble with my scripts not finding the UnityEngine module when I do a WebGL build.
I have the same issue in-editor when I uncheck the ReflectBind mode.
Repro steps:
JS Bridge > Generate Bindings and Type Definition
Open Assets/Examples/Scenes/SampleScene.unity
For Entry File name, select game_demo or example_monobehaviour
Disable ReflectBind mode
Press play
Expected: the examples run normally
Actual: They don't run and in the console I see:
[JS] undefined:undefined module can not be resolved (UnityEngine)
at require (native)
at <anonymous> (assets/js-scripts/components/mikesample_mutate_global.js.bytes:10)
at require (native)
at <eval> (/Users/mike/code/unity-jsb/Scripts/src/components/mikesample_mutate_global.ts)
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
QuickJS.Extra.MiniConsole:LogError (string) (at Assets/jsb-extra/MiniConsole/MiniConsole.cs:87)
QuickJS.Extra.MiniConsole:LogErrorFormat (string,object[]) (at Assets/jsb-extra/MiniConsole/MiniConsole.cs:160)
QuickJS.Extra.MiniConsole:UnityEngine.ILogHandler.LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) (at Assets/jsb-extra/MiniConsole/MiniConsole.cs:214)
UnityEngine.Debug:LogError (object)
QuickJS.Unity.JSBehaviour:CreateScriptInstance () (at Packages/cc.starlessnight.unity-jsb/Source/Unity/JSBehaviour.cs:669)
QuickJS.Unity.JSBehaviour:Awake () (at Packages/cc.starlessnight.unity-jsb/Source/Unity/JSBehaviour.cs:545)
The text was updated successfully, but these errors were encountered:
I checked on unity2020.3+windows build. It works properly with these steps. Will this issue be reproduced on platform builds other than WebGL on your side?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm having trouble with my scripts not finding the UnityEngine module when I do a WebGL build.
I have the same issue in-editor when I uncheck the ReflectBind mode.
Repro steps:
Expected: the examples run normally
Actual: They don't run and in the console I see:
The text was updated successfully, but these errors were encountered: