private void GUIMark() { var timeline = TimelineWindow.inst.timeline; var marks = timeline?.trackTrees?[0].marks; if (marks != null && (emarks == null || emarks.Length != marks.Length)) { int len = marks.Length; emarks = new EditorMark[len]; for (int i = 0; i < len; i++) { emarks[i] = (EditorMark)TypeUtilities.InitEObject(marks[i]); } } if (emarks != null) { using (GUIColorOverride color = new GUIColorOverride(Color.green)) { markF = EditorGUILayout.Foldout(markF, "marks"); } if (markF) { foreach (var mark in emarks) { mark.Inspector(); } } } GUILayout.Space(4); }
private void SetupEMarks() { int len = track.marks.Length; if (emarks == null || emarks.Length != len) { emarks = new EditorMark[len]; for (int j = 0; j < len; j++) { emarks[j] = (EditorMark)TypeUtilities.InitEObject(track.marks[j]); } } }
public static EditorTrack GetTrack(XTrack track) { return((EditorTrack)TypeUtilities.InitEObject(track)); }