mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Utils.IsPrefab: remove <2018.3 support
This commit is contained in:
parent
df2330239f
commit
c3c95d22ca
@ -84,15 +84,7 @@ public static uint GetTrueRandomUInt()
|
||||
public static bool IsPrefab(GameObject obj)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
#if UNITY_2018_3_OR_NEWER
|
||||
return UnityEditor.PrefabUtility.IsPartOfPrefabAsset(obj);
|
||||
#elif UNITY_2018_2_OR_NEWER
|
||||
return UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource(obj) == null &&
|
||||
UnityEditor.PrefabUtility.GetPrefabObject(obj) != null;
|
||||
#else
|
||||
return UnityEditor.PrefabUtility.GetPrefabParent(obj) == null &&
|
||||
UnityEditor.PrefabUtility.GetPrefabObject(obj) != null;
|
||||
#endif
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user