Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Enmark's avatar
Enmark
Expert Protege
7 years ago

Multiplayer & OVRPlayerController prefab? dev for "Polygon Nightmare"

Hi. i'm trying to make my game "Polygon Nightmare" a multiplayer version but got stuck at the (!isLocalPlayer) function!

I have followed the 
instruction described:
https://unity3d.com/learn/tutorials/topics/multiplayer-networking/identifying-local-player?playlist=29690
and it works for the OVRPlayerController.cs (moving the localplayer in a multiplayer instantiated prefab)!

But! trying to do the same in the 
OVRCameraRig.cs script to sync the local players touch controller input, doesn't work at all?
I get multiple strange glitches trying to implement !isLocalPlayer. in the CameraRig script (holding the anchor movement input) 

And even that i need a NetworkIdentity component on the OVRCameraRig object, resulting in i get an error you should only have one NetworkIdentity component on the root object?

PLEASE! could anyone describe a way to make  the OVRPlayerController prefab into a working Network local player "achor" wielding prefab  :)

1 Reply

Replies have been turned off for this discussion
  • Enmark's avatar
    Enmark
    Expert Protege
    No have not yet but if its a simpler way to do easy multiplayer i will go for Photon!  Tanks for the advice :)