dispatchReactUnityEvent is not a function #423
Unanswered
ReginaldBull
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Followed the instructions in the documentation. In Unity I created under Plugins/WebGL a file "React.jslib" with following content:
Inside of Unity
The Initialize method is called by the React-Frontend and works.
Now I want to give a message back after the initialization happened. Therefore, I added the UnityContextInitialized("Initialized") call.
While the project is run and opened, the following message shows up in the console output:
TypeError: window.dispatchReactUnityEvent is not a function.
I see the log message from this console.log: console.log("Unity: " + UTF8ToString(message));
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions