三国卡牌客户端基础资源仓库
18 子 2D卡牌客户端搭建 / 2D卡牌客户端搭建 新增界面ScaleOverInOut曲线(给策划/美术调
1个文件已修改
6 ■■■■■ 已修改文件
Assets/Editor/UI/UIBaseInspector.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/UI/UIBaseInspector.cs
@@ -16,6 +16,7 @@
    SerializedProperty closeAnimationType;
    SerializedProperty animeRoot;
    SerializedProperty animeDuration;
    SerializedProperty scaleOverInOutCurve;
    SerializedProperty animationEase;
    SerializedProperty openMask;
@@ -34,6 +35,7 @@
        closeAnimationType = serializedObject.FindProperty("closeAnimationType");
        animeRoot = serializedObject.FindProperty("_rectTransform");
        animeDuration = serializedObject.FindProperty("animeDuration");
        scaleOverInOutCurve = serializedObject.FindProperty("scaleOverInOutCurve");
        animationEase = serializedObject.FindProperty("animationEase");
        openMask = serializedObject.FindProperty("openMask");
@@ -68,6 +70,10 @@
        {
            EditorGUI.indentLevel++;
            EditorGUILayout.PropertyField(animeDuration);
            if ((UIAnimationType)openAnimationType.enumValueIndex == UIAnimationType.ScaleOverInOut)
            {
                EditorGUILayout.PropertyField(scaleOverInOutCurve);
            }
            EditorGUILayout.PropertyField(animationEase);
            EditorGUI.indentLevel--;
        }