- Home /
Spawing Hololens Camera OR ARCamera at user defined spawn locations
Hello everyone.
I am new to Unity and I am exploring HLAPI that UNITY provides for server client multiplayer scenes. As in Tanks Multiplayer demo that Asset store has, we have 'NetworkStartPosition' Component which we can directly attach to gameobject and the random/ round robin mechanism by network manager can assign a spawn location for player prefab. The work is done. Cool.
But the question I am having is -> When I work with ARCamera/ HololensCamera, I can see that, no matter where I place my NetworkStarPosition component on the scene, the player always gets instantiated at 0,0,0. I understand thats how AR cameras are suppose to work. Their initial position will always be 0,0,0. (My player prefab is a capsule whose transform location is updated with respect to ARCamera's location )
Also, in one of the Unity Videos, they said, we can play with keeping the camera in center and moving the world, which is a different perspective, but again, my question is if I move the world for one player, won't it affect the world coordinates for other connected player?
I am not able to think about any approach I should take. Can anyone suggest me what I should do?
Your answer
Follow this Question
Related Questions
Netcode [Command] Issues .. no errors, just not working. 1 Answer
[Unet] Did not find target for sync message for 1. Delayed Spawn information 2 Answers
UNet - The thing you want to instantiate is null 2 Answers
Unity Networking: Object only spawning on the Host client. 2 Answers
Synvar hook firing but value not getting updated on client 0 Answers