diff options
author | chai <chaifix@163.com> | 2021-04-07 21:13:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-04-07 21:13:03 +0800 |
commit | d69611d66431e28ea35477c6781a00d57ae04fa3 (patch) | |
tree | c76b3147642a6d1749406f25f2fdacce4ba7a272 /Assets/Test/UIEffect/Program/Editor/UIShadowEditor.cs | |
parent | c7e2d8f773baa3955f17402b842eb43329c5f3a0 (diff) |
*因为没有meta,导致missing,删除UIEffect
Diffstat (limited to 'Assets/Test/UIEffect/Program/Editor/UIShadowEditor.cs')
-rw-r--r-- | Assets/Test/UIEffect/Program/Editor/UIShadowEditor.cs | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/Assets/Test/UIEffect/Program/Editor/UIShadowEditor.cs b/Assets/Test/UIEffect/Program/Editor/UIShadowEditor.cs deleted file mode 100644 index 64f01d6..0000000 --- a/Assets/Test/UIEffect/Program/Editor/UIShadowEditor.cs +++ /dev/null @@ -1,62 +0,0 @@ -using UnityEditor; -using UnityEditorInternal; -using UnityEngine; - -namespace Coffee.UIEffects.Editors -{ - /// <summary> - /// UIShadow editor. - /// </summary> - [CustomEditor(typeof(UIShadow))] - [CanEditMultipleObjects] - public class UIShadowEditor : Editor - { - UIEffect uiEffect; - SerializedProperty _spStyle; - SerializedProperty _spEffectDistance; - SerializedProperty _spEffectColor; - SerializedProperty _spUseGraphicAlpha; - SerializedProperty _spBlurFactor; - - void OnEnable() - { - uiEffect = (target as UIShadow).GetComponent<UIEffect>(); - _spStyle = serializedObject.FindProperty("m_Style"); - _spEffectDistance = serializedObject.FindProperty("m_EffectDistance"); - _spEffectColor = serializedObject.FindProperty("m_EffectColor"); - _spUseGraphicAlpha = serializedObject.FindProperty("m_UseGraphicAlpha"); - _spBlurFactor = serializedObject.FindProperty("m_BlurFactor"); - } - - /// <summary> - /// Implement this function to make a custom inspector. - /// </summary> - public override void OnInspectorGUI() - { - serializedObject.Update(); - - //================ - // Shadow setting. - //================ - EditorGUILayout.PropertyField(_spStyle); - - // When shadow is enable, show parameters. - if (_spStyle.intValue != (int) ShadowStyle.None) - { - EditorGUI.indentLevel++; - EditorGUILayout.PropertyField(_spEffectDistance); - EditorGUILayout.PropertyField(_spEffectColor); - EditorGUILayout.PropertyField(_spUseGraphicAlpha); - - if (uiEffect && uiEffect.blurMode != BlurMode.None) - { - EditorGUILayout.PropertyField(_spBlurFactor); - } - - EditorGUI.indentLevel--; - } - - serializedObject.ApplyModifiedProperties(); - } - } -} |