Exemple #1
0
        public override void OnInspectorGUI()
        {
            serializedItem.Update();

            DrawControlPanel();
            if (Selection.transforms.Length == 1)
            {
                TSSTweenEditor.DrawTweensPanel(item.tweens, item, foldOutTweens, item.values);
            }
            DrawEventsPanel();
            DrawAdvancedPanel();

            serializedItem.ApplyModifiedProperties();

            GUILayout.Space(3);

            if (lastItemState != item.enabled)
            {
                if (item.parent != null)
                {
                    item.parent.Refresh();
                }
                lastItemState = item.enabled;
            }

            if (GUI.changed && !Application.isPlaying)
            {
                EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene());
            }
        }
Exemple #2
0
        public override void OnInspectorGUI()
        {
            profile           = (TSSProfile)target;
            serializedProfile = new SerializedObject(profile);
            serializedProfile.Update();

            evulate = EditorGUILayout.Slider(evulate, 0, 1);

            TSSTweenEditor.DrawTweensPanel(profile.tweens, profile, foldOutTweens, profile.values);
            DrawItemsPanel(TSSBehaviour.GetItems().Where(i => i.profile == profile).OrderBy(i => i.name).ToArray());
            DrawValuesPanel();

            EditorGUILayout.Space();
            serializedObject.ApplyModifiedProperties();
        }