diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/UMotion/UMotionEditor/Scripts/Editor/EditorVersionCompatibilityUtility.cs | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/UMotion/UMotionEditor/Scripts/Editor/EditorVersionCompatibilityUtility.cs')
-rw-r--r-- | Assets/ThirdParty/UMotion/UMotionEditor/Scripts/Editor/EditorVersionCompatibilityUtility.cs | 67 |
1 files changed, 0 insertions, 67 deletions
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
- //********************************************************************************
-
- }
-}
|