diff --git a/Assets/Mirage/Runtime/NetworkIdentity.cs b/Assets/Mirage/Runtime/NetworkIdentity.cs index d336b7cad5..e9a3ea1321 100644 --- a/Assets/Mirage/Runtime/NetworkIdentity.cs +++ b/Assets/Mirage/Runtime/NetworkIdentity.cs @@ -171,6 +171,14 @@ public sealed class NetworkIdentity : MonoBehaviour /// public bool IsSceneObject => _sceneId != 0; + /// + /// Used to clear . Use in cases where you want to spawn object in custom way using Spawn Handlers with AssetId. + /// + public void ClearSceneId() + { + _sceneId = 0; + } + /// /// Is this object a prefab and have a so that it can be spawned over the network ///