static public void show() { mTimelineEditor = (TimelineEditor)EditorWindow.GetWindow(typeof(TimelineEditor)); if (Selection.transforms.Length == 1) { Timeline tempTimeline = Selection.transforms[0].GetComponent<Timeline>(); if (tempTimeline != null) { mTimelineEditor.setActiveTimeline(tempTimeline); mTimelineEditor.refreshLayers(); } } }