From c3c95d22ca453351d95335128bedc4f5ce9d5e29 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 13 Mar 2021 20:00:12 +0800 Subject: [PATCH] Utils.IsPrefab: remove <2018.3 support --- Assets/Mirror/Runtime/Utils.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Assets/Mirror/Runtime/Utils.cs b/Assets/Mirror/Runtime/Utils.cs index 05cf7f2be..def35f142 100644 --- a/Assets/Mirror/Runtime/Utils.cs +++ b/Assets/Mirror/Runtime/Utils.cs @@ -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