Communication from React to Unity (Failed) #241
Unanswered
yurivlm
asked this question in
Help Wanted!
Replies: 1 comment
-
Hi, try creating your Unity Context outside of your component. A rerender may cause the reference to your Unity instance to get lost. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to communicate from React to Unity. Basically, the user presses a button on the browser to load a scene in unity. I tried using the example in the documentation but it doesn't work. The function in unity is not called. Nothing happens.
MenuGame.cs ( Attached to GameObject "GameController or "Square")
Code React Component.js
Console:
Beta Was this translation helpful? Give feedback.
All reactions