This commit is contained in:
petris 2019-01-20 16:23:48 +01:00 committed by Paul Pacheco
parent 3396e56133
commit 15c5926041

View File

@ -179,8 +179,8 @@ public static void OnPostProcessScene()
identity.gameObject.SetActive(false); identity.gameObject.SetActive(false);
// safety check for prefabs with more than one NetworkIdentity // safety check for prefabs with more than one NetworkIdentity
#if UNITY_2018_3_OR_NEWER #if UNITY_2018_2_OR_NEWER
GameObject prefabGO = PrefabUtility.GetCorrespondingObjectFromSource(identity.gameObject); GameObject prefabGO = PrefabUtility.GetCorrespondingObjectFromSource(identity.gameObject) as GameObject;
#else #else
GameObject prefabGO = PrefabUtility.GetPrefabParent(identity.gameObject) as GameObject; GameObject prefabGO = PrefabUtility.GetPrefabParent(identity.gameObject) as GameObject;
#endif #endif