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

NativeCallProxy.h is not in my Unity Project

Open romixch opened this issue 2 years ago • 4 comments

Hi azesmway

Thanks for your great work here. Your package saves my life.

I have just one problem. My Unity Project does not contain the NativeCallProxy.h. I don't know how to add it. I found different versions of it by googling. Would yo mind giving us a hint on how to integrate the right ones. I would like to help write this down in an easy to understand way to help other users.

Thanks!

romixch avatar Sep 02 '22 08:09 romixch

Please see example https://github.com/azesmway/react-native-unity/tree/main/example/unity/source/Assets/Plugins/iOS

azesmway avatar Sep 02 '22 08:09 azesmway

Wow! That was quick! I will try this right away.

romixch avatar Sep 02 '22 08:09 romixch

Wow! That was quick! I will try this right away.

Did you create a Plugins folder and copied these 4 files? I too have this same issue.

rtndeep9 avatar Sep 02 '22 08:09 rtndeep9

Wow! That was quick! I will try this right away.

Did you create a Plugins folder and copied these 4 files? I too have this same issue.

I had the folder Plugins already and just created the folder iOS. I then put the NativeCallProxy.h and NativeCallProxy.mm in there. Unity automatically picked them up and created the *.meta files.

That all worked perfect. After exporting again you probably have to check the settings of the Data folder and clean iOS build folder. Don't forget to mark NativeCallProxy.h as public in your React Native project.

Thanks again to @azesmway! ❤️

romixch avatar Sep 02 '22 09:09 romixch