From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Editor/EditorVersionCompatibilityUtility.cs | 67 ---------------------- 1 file changed, 67 deletions(-) delete mode 100644 Assets/ThirdParty/UMotion/UMotionEditor/Scripts/Editor/EditorVersionCompatibilityUtility.cs (limited to 'Assets/ThirdParty/UMotion/UMotionEditor/Scripts/Editor/EditorVersionCompatibilityUtility.cs') diff --git a/Assets/ThirdParty/UMotion/UMotionEditor/Scripts/Editor/EditorVersionCompatibilityUtility.cs b/Assets/ThirdParty/UMotion/UMotionEditor/Scripts/Editor/EditorVersionCompatibilityUtility.cs deleted file mode 100644 index 567b7a0e..00000000 --- a/Assets/ThirdParty/UMotion/UMotionEditor/Scripts/Editor/EditorVersionCompatibilityUtility.cs +++ /dev/null @@ -1,67 +0,0 @@ -using UnityEngine; -using UnityEditor; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using UnityEditor.Compilation; -#if UNITY_2018_3_OR_NEWER -using UnityEditor.Experimental.SceneManagement; -#endif - -namespace UMotionEditor -{ - public static class EditorVersionCompatibilityUtility - { - //******************************************************************************** - // Public Properties - //******************************************************************************** - - //******************************************************************************** - // Private Properties - //******************************************************************************** - - //---------------------- - // Inspector - //---------------------- - - //---------------------- - // Internal - //---------------------- - - //******************************************************************************** - // Public Methods - //******************************************************************************** - - public static bool IsModelPrefab(GameObject gameObject) - { - #if UNITY_2018_3_OR_NEWER - return (PrefabUtility.GetPrefabAssetType(gameObject) == PrefabAssetType.Model); - #else - return (PrefabUtility.GetPrefabType(gameObject) == PrefabType.ModelPrefab); - #endif - } - - public static bool IsPrefab(GameObject gameObject) - { - #if UNITY_2018_3_OR_NEWER - return (PrefabUtility.GetPrefabAssetType(gameObject) != PrefabAssetType.NotAPrefab); - #else - return (PrefabUtility.GetPrefabType(gameObject) != PrefabType.None); - #endif - } - - public static bool IsInPrefabStage() - { - #if UNITY_2018_3_OR_NEWER - return (PrefabStageUtility.GetCurrentPrefabStage() != null); - #else - return false; - #endif - } - - //******************************************************************************** - // Private Methods - //******************************************************************************** - - } -} -- cgit v1.1-26-g67d0