Why Network Object Destroy my networkbehaviour component?
Options
Answers
-
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.
0 -
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.
0 -
As long as these are not NetworkBehaviours that is completely fine.
0 -
However, there are components that inherit from Network Behavior, but despite this, NetworkObject destroys it as well
0