The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

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.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Runner.spawn spawns object correctly in host but not clients

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?


2023-02-21 22:30:09

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