You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a class Fighter inheriting from NetworkBehaviour. Then a more specific class for the Fighter innheriting from Fighter. That class is attached to an object with NetworkObject component attached. I start server, spawn the object on Server (dynamically) with ownership = client (btw I spawn this new NetworkObject by Instantiating it under our Player default object, which is spawned by Network Manager under the Default Player Prefab field. Then after Instantiating it under that, only 1 line after I spawn it on the Network using its NetworkObject through the server). NetworkObject says IsOwner true, NetworkBehaviour script says IsOwner = false.
Reproduce Steps
Idk the steps exclusively. Though it could be related to Inheriting or how I instantiated it.
Actual Outcome
IsOwner is false on NetworkBehaviour but true on NetworkObject.
Expected Outcome
IsOwner should have been true in both NetworkObject and all NetworkBehaviours attached to it.
Screenshots
Console is logging IsOwner from the NetworkBehaviour script
Environment
OS: Windows 10
Unity Version: 6000.0.24f1
Netcode Version: 2.2.0
Netcode Commit: Idk specifically, but the Package manager says released on December 16, 2024
The text was updated successfully, but these errors were encountered:
Description
I have a class Fighter inheriting from NetworkBehaviour. Then a more specific class for the Fighter innheriting from Fighter. That class is attached to an object with NetworkObject component attached. I start server, spawn the object on Server (dynamically) with ownership = client (btw I spawn this new NetworkObject by Instantiating it under our Player default object, which is spawned by Network Manager under the Default Player Prefab field. Then after Instantiating it under that, only 1 line after I spawn it on the Network using its NetworkObject through the server). NetworkObject says IsOwner true, NetworkBehaviour script says IsOwner = false.
Reproduce Steps
Idk the steps exclusively. Though it could be related to Inheriting or how I instantiated it.
Actual Outcome
IsOwner is false on NetworkBehaviour but true on NetworkObject.
Expected Outcome
IsOwner should have been true in both NetworkObject and all NetworkBehaviours attached to it.
Screenshots
Console is logging IsOwner from the NetworkBehaviour script
Environment
The text was updated successfully, but these errors were encountered: