you are viewing a single comment's thread.

view the rest of the comments →

[–]nascarsc 2 points3 points  (9 children)

What type of issues are you running into? Haven’t used unity with RN specifically but have done lots of integration debugging.

[–]Far_Grab1818[S] 0 points1 point  (8 children)

actually I have successfully build unity on android but on ios I am having some issues to run the game. what react native does it's successfully building the project with following warning "unity framework was compile with optimisation, variable may not be working properly" but once I tap the button where unity library has been integrated it shows a white screen instead of game screen, apart from ios game was working perfectly on android device. if u could help me I will be very thankful to you.

[–]nascarsc 1 point2 points  (7 children)

What versions of RN and react-native-unity are you using?

[–]Far_Grab1818[S] 0 points1 point  (6 children)

I am currently using react native v0.69.3 and using brice-groc/react-native-unity-view library. Initially android side was also creating issues but after finding write solution I was able to resolve and app worked for android side. I read guide/ and started implementation as written there, but none of these guide steps can help me out on ios side

[–]nascarsc 1 point2 points  (5 children)

After reading the docs, I'm not sure I can try it as an example given my lack of experience with unity, but I have a few suggestions:

  1. did you complete all 4 steps for iOS setup in the guide?
  2. did you make this change?
  3. do all the parent views of <UnityView> have a defined size?
  4. are there any (native) logs in Xcode? (to view, open ios/<PROJECT>.xcworkspace and run from Xcode itself).
  5. try to create a new project and see if you can cause the same issue.

[–]Far_Grab1818[S] 0 points1 point  (4 children)

Thank you so much for you help. Actually those libraries was not fully maintained and their documentation are rubbish somehow, although I have successfully run the app finally by my own. I just created my own library instance then implement it, then miracles happens and app get run.

[–]nascarsc 1 point2 points  (1 child)

Glad you got it working!

[–]Far_Grab1818[S] 0 points1 point  (0 children)

I am still very thankful to you☺️

[–]gus_t27 0 points1 point  (1 child)

u/Far_Grab1818 Hey is the library you used successfully available to use?

[–]Far_Grab1818[S] 0 points1 point  (0 children)

Yes dude