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

How to receive message from unity?

Open sneakstarberry opened this issue 3 years ago • 2 comments

is there some example code of receiving message from unity? if exists, can you tell me where is it? that will be really thank you.

sneakstarberry avatar Jan 12 '22 16:01 sneakstarberry

is there some example code of receiving message from unity? if exists, can you tell me where is it? that will be really thank you.

Hi You can see how it's done here. https://github.com/asmadsen/react-native-unity-view

azesmway avatar Jan 14 '22 08:01 azesmway

is there some example code of receiving message from unity? if exists, can you tell me where is it? that will be really thank you.

Hi You can see how it's done here. https://github.com/asmadsen/react-native-unity-view

I do that example code but there is error occured in ios. like below.

Undefined symbols for architecture arm64:
  "_onUnityMessage", referenced from:
      _UnityMessageManager_onUnityMessage_mCD8AB854AA235C61FDB03C76876A9EB7DAE0CAD5 in Assembly-CSharp.o
     (maybe you meant: _UnityMessageManager_onUnityMessage_mCD8AB854AA235C61FDB03C76876A9EB7DAE0CAD5)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I spend almost a day but I can't find way to solve it. can you help me? @azesmway

sneakstarberry avatar Jan 14 '22 10:01 sneakstarberry