public static void ShowWindow() { Instance = GetWindow(typeof(InternalUiAnimationEditor)) as InternalUiAnimationEditor; Instance.titleContent = new GUIContent("UiAnimation"); Selection.selectionChanged += () => { Instance.Update(); Instance.Repaint(); }; }
public void Update() { Instance = this; InternalUiAnimationEditorSelection.Update(); if (InternalUiAnimationEditorSelection.TargetGameObject == null) { return; } if (InternalUiAnimationEditorSelection.TargetAnimation == null) { return; } InternalUiAnimationEditorPlayer.Update(); InternalUiAnimationEditorTimeline.Update(); InternalUiAnimationEditorCanvas.Update(); Repaint(); }