Child objects not showing to other players

Hi,

I'm having a strange issue with my multiplayer game using Photon. I instantiate players in playmode and everything that was/is active on the character prefab upon instantiation, including any child objects is visible to all players, but if I want to activate a child object after instantiation, the child object is invisible to other players and only visible to the character on whom I activated the object.

This is a problem for engine smoke (particle system) and weapons prefab gameobjects that I've attached as children on the characters. Why does this happen and how can I fix it, does anyone know?

Comments

  • develax
    develax ✭✭
    edited July 2019
    Hi, @petersenjmp
    The states of an object as "being active" are not transferred over the network as they change. For example, you may want intentionally deactivate some parts of other players but still show them on the "mine" player. You have to use RPC or other approaches to signal about changes.
  • Thank you very much, I totally forgot to RPC the changes. It works now :-)