Search Unity

Reference Timeline Window programatically

Discussion in 'Editor & General Support' started by vinnie-vivace, May 26, 2018.

  1. vinnie-vivace

    vinnie-vivace

    Joined:
    Jan 12, 2010
    Posts:
    40
    Is this possible?

    Im wanting to launch (and resize / reposition) the timeline window from an Editor script. Have done similar things using reflection:


    Code (CSharp):
    1. var viewType = typeof(UnityEditor.EditorWindow).Assembly.GetType("UnityEditor.Timeline.TimelineWindow");
    2. var window = EditorWindow.GetWindow(viewType);
    cheers