public TimelineLitesTreeView(TreeViewState state, string _filtter, TimelineLiteEditorWindow _window) : base(state) { rowHeight = 20; filtter = _filtter; Window = _window; showBorder = true; showAlternatingRowBackgrounds = true; playIcon = new GUIContent(EditorGUIUtility.FindTexture("PlayButton"), "播放"); }
protected virtual void OnEnable() { instance = this; titleContent = new GUIContent("TimelineLites"); EditorApplication.playModeStateChanged += OnPlayModeChanged; #if UNITY_2019_1_OR_NEWER SceneView.duringSceneGui += OnSceneGUI; #else SceneView.onSceneGUIDelegate += OnSceneGUI; #endif Playable = (EditorUtility.InstanceIDToObject(playableInstanceID) as GameObject)?.GetComponent <PlayableDirectorLite>(); Initialize(); }