Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsOwner false on a NetworkBehaviour with 'NetworkObject that has IsOwner = True' #3210

Open
MaybeKush opened this issue Jan 18, 2025 · 0 comments
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report

Comments

@MaybeKush
Copy link

MaybeKush commented Jan 18, 2025

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

Image
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
@MaybeKush MaybeKush added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report
Projects
None yet
Development

No branches or pull requests

1 participant