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
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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Can't spawn objects/rpc in shared mode

Lamos
2022-04-17 20:40:28

Hi there!

I'm trying to implement fusion in our VR game, and I've chosen to use it in shared mode. (You claim the object you're holding/interacting with).

However no matter what I do, no object is spawned or RPC is recieved on another client.

The decal is spawned locally once from the first spawn, but not on any other clients.

How do I spawn something in shared mode?

Thanks in advance!

Comments

ramonmelo
2022-06-15 13:32:03

Hi @Lamos ,

When running in Shared Mode, any client can call spawn and the prefab will be created on all other clients.

The way you are doing it, every client will create their own copy of the Prefab, which is not what you intended, as you are calling an RPC to be invoked on each client, so each one will create their own copy.

You should be able to just invoke "NetworkRunner.Spawn" from the client you want to create the Decal, and that should be enough to sync it on all others.

--

Ramon Melo

Photon Fusion Team

Back to top