Why Network Object Destroy my networkbehaviour component?

Options

Tell me in wich cases Network Object can destory prefab components?

Answers

  • Luke_Sta
    Options

    Not sure I understand what exactly you are asking for. Could you provide some more details. You cannot add/remove NetworkBehaviour components to a NetworkObject instance. You can add/remove regular Unity MonoBehaviours but you will have to make sure using your own code logic that each client add/removes the same components.

  • FrixQn
    Options

    More specifically, the canvas and a number of components of my own logic are removed from my prefab, which I will spawn through Network Runner.

  • Luke_Sta
    Options

    As long as these are not NetworkBehaviours that is completely fine.

  • FrixQn
    Options

    However, there are components that inherit from Network Behavior, but despite this, NetworkObject destroys it as well