public static void Open() { Rect wr = new Rect(0, 0, 500, 500); AnimationCurveEditor myWindow = (AnimationCurveEditor)EditorWindow.GetWindowWithRect(typeof(AnimationCurveEditor), wr, true, "AnimationCurve Editor"); myWindow.Init(); myWindow.Show(); }
static void Init() { AnimationCurveEditor window = (AnimationCurveEditor)EditorWindow.GetWindow(typeof(AnimationCurveEditor)); window.Show(); }