Пример #1
0
        public void DrawTweener()
        {
            GetTweenerEditor();
            if (TweenerEditor == null)
            {
                if (Target.Type != TweenType.None)
                {
                    EditorGUILayout.LabelField(Target.Type + " not support run with Component! OnInspectorGUI call failed!");
                }

                return;
            }

            if (!TweenerEditor.TweenAnimation.HasRequireComponent)
            {
                EditorGUILayout.LabelField("No valid component was found!");
                var fixRequireComponentBtn = GUILayout.Button("Auto Fix / Recheck Require Component");
                if (fixRequireComponentBtn)
                {
                    TweenerEditor.TweenAnimation.FixRequireComponent();
                    TweenerEditor.TweenAnimation.CheckRequireComponent();
                }

                return;
            }

            TweenerEditor.OnInspectorGUI(TweenParamSerializedProperty);
        }
Пример #2
0
        public void DrawTweener()
        {
            GetTweenerEditor();
            if (TweenerEditor == null)
            {
                if (Target.Param.Type != TweenType.None)
                {
                    EditorGUILayout.LabelField(Target.Param.Type + " not support run with Component!");
                }

                return;
            }

            TweenerEditor.OnInspectorGUI(TweenParamSerializedProperty);
        }