예제 #1
0
        public static void ShowWindow()
        {
            Instance = GetWindow(typeof(InternalUiAnimationEditor)) as InternalUiAnimationEditor;
            Instance.titleContent = new GUIContent("UiAnimation");

            Selection.selectionChanged += () =>
            {
                Instance.Update();
                Instance.Repaint();
            };
        }
예제 #2
0
        public void Update()
        {
            Instance = this;

            InternalUiAnimationEditorSelection.Update();

            if (InternalUiAnimationEditorSelection.TargetGameObject == null)
            {
                return;
            }

            if (InternalUiAnimationEditorSelection.TargetAnimation == null)
            {
                return;
            }

            InternalUiAnimationEditorPlayer.Update();
            InternalUiAnimationEditorTimeline.Update();
            InternalUiAnimationEditorCanvas.Update();

            Repaint();
        }