From a492705f9716350d95eb4007d213000f904b2b37 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Fri, 6 Dec 2024 16:33:29 +0000 Subject: [PATCH] feat: adding ClearSceneId function --- Assets/Mirage/Runtime/NetworkIdentity.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ///