Resets the value of a NetworkHash to zero (invalid).
void SetupIDs() { GameObject prefab; if (ThisIsAPrefab()) { if (LogFilter.logDev) { Debug.Log("This is a prefab: " + gameObject.name); } AssignAssetID(gameObject); } else if (ThisIsASceneObjectWithPrefabParent(out prefab)) { if (LogFilter.logDev) { Debug.Log("This is a scene object with prefab link: " + gameObject.name); } AssignAssetID(prefab); } else { if (LogFilter.logDev) { Debug.Log("This is a pure scene object: " + gameObject.name); } m_AssetId.Reset(); } }
void SetupIDs() { GameObject prefab; if (ThisIsAPrefab()) { ForceSceneId(0); AssignAssetID(gameObject); } else if (ThisIsASceneObjectWithPrefabParent(out prefab)) { AssignAssetID(prefab); } else { m_AssetId.Reset(); } }