react-native-unity-view icon indicating copy to clipboard operation
react-native-unity-view copied to clipboard

How do I send a JSON from unity?

Open clearly-outsane opened this issue 4 years ago • 0 comments

I'm sorry but there doesn't seem to be a clear explanation to this on the README

UnityMessageManager.Instance.SendMessageToRN(new UnityMessage() { name = "click", callBack = (data) => { Debug.Log("onClickCallBack:" + data); } });

When i do this from unity, nothing happens on the react native side, the function passed to onUnityMessage doesnt get triggered

clearly-outsane avatar Jul 13 '21 18:07 clearly-outsane