Runner.spawn spawns object correctly in host but not clients
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on Fusion.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Runner.spawn spawns object correctly in host but not clients
ZnamReB
2023-02-19 11:42:22
I want to spawn an object in a specific position which stored in a variable of a class. The host device spawns the object in the correct position but client devices will spawn the object at (0,0,0).
the object to be spawned is a inherited from a NetworkBehaviour but not NetworkTransform. Is NetworkTransform needed in order to spawn the object in a correct position in both client and host?
Comments
I can't find the specific page in the documentation right now, but yes, from memory, passing a position/rotation to Runner.Spawn will not automatically synchronise on clients unless a NetworkTransform component is added.
Back to top