Skip to content

Commit 815d310

Browse files
committed
Comments
1 parent db9b406 commit 815d310

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ public sealed class NetworkObject : MonoBehaviour
5252
/// Gets the Prefab Hash Id of this object if the object is registerd as a prefab otherwise it returns 0
5353
/// </summary>
5454
[HideInInspector]
55-
public uint PrefabIdHash => GlobalObjectIdHash;
55+
public uint PrefabIdHash
56+
{
57+
get
58+
{
59+
return GlobalObjectIdHash;
60+
}
61+
}
5662

5763
/// <summary>
5864
/// InstantiationData sent during the instantiation process.

com.unity.netcode.gameobjects/Runtime/Spawning/NetworkSpawnManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ internal void ChangeOwnership(NetworkObject networkObject, ulong clientId, bool
521521
throw new NotServerException("Only the server can change ownership");
522522
}
523523

524+
//Should this go at the beginning of the function?
524525
if (!networkObject.IsSpawned)
525526
{
526527
throw new SpawnStateException("Object is not spawned");

0 commit comments

Comments
 (0)