Sending information back and forth between Unity and React #184
-
so I am trying to send some information into Unity when Unity sends something to me. unityContext.on("Event", (something) => {
SendFunction();
}
async function SendFunction(){
unityContext.send("GameController", "RecieveInfo", "here is a string I want to send to Unity");
} the string seems to be not received by Unity. Assuming Unity side is built properly and if I just go SendFunction(); outside of unityContext.on it works. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Could it be a typo ... "RecieveInfo" should be "ReceiveInfo"? |
Beta Was this translation helpful? Give feedback.
Could it be a typo ... "RecieveInfo" should be "ReceiveInfo"?