diff --git a/Assets/Mirror/Runtime/NetworkIdentity.cs b/Assets/Mirror/Runtime/NetworkIdentity.cs index f3001609c..2ca0972e2 100644 --- a/Assets/Mirror/Runtime/NetworkIdentity.cs +++ b/Assets/Mirror/Runtime/NetworkIdentity.cs @@ -188,7 +188,18 @@ internal set // keep track of all sceneIds to detect scene duplicates static readonly Dictionary sceneIds = new Dictionary(); - public static NetworkIdentity GetSceneIdenity(ulong id) => sceneIds[id]; + /// + /// Obsolete: Use instead + /// + [Obsolete("Use GetSceneIdentity instead")] + public static NetworkIdentity GetSceneIdenity(ulong id) => GetSceneIdentity(id); + + /// + /// Gets the NetworkIdentity from the sceneIds dictionary with the corresponding id + /// + /// + /// NetworkIdentity from the sceneIds dictionary + public static NetworkIdentity GetSceneIdentity(ulong id) => sceneIds[id]; // used when adding players internal void SetClientOwner(NetworkConnection conn)