public UTimelineWindowTimeControl(Assembly asmTimelineEditor, Assembly asmTimelineEngine) { timelineWindowTimeControlType = asmTimelineEditor.GetType("UnityEditor.Timeline.TimelineWindowTimeControl"); Assert.IsNotNull(dg_get_m_Clip = EditorCommon.CreateGetFieldDelegate <TimelineClip>(timelineWindowTimeControlType.GetField("m_Clip", BindingFlags.NonPublic | BindingFlags.Instance))); uTimelineState = new UTimelineState(); }
public UTimelineWindow() { Assembly asmTimelineEditor, asmTimelineEngine; GetTimelineAssembly(out asmTimelineEditor, out asmTimelineEngine); var timelineWindowType = asmTimelineEditor.GetType("UnityEditor.Timeline.TimelineWindow"); Assert.IsNotNull(dg_get_instance = (Func <EditorWindow>)Delegate.CreateDelegate(typeof(Func <EditorWindow>), null, timelineWindowType.GetProperty("instance", BindingFlags.Public | BindingFlags.Static).GetGetMethod())); uTimelineWindowTimeControl = new UTimelineWindowTimeControl(asmTimelineEditor, asmTimelineEngine); uTimelineState = new UTimelineState(); uTrackAsset = new UTrackAsset(); uTimelineTreeViewGUI = new UTimelineTreeViewGUI(); uTimelineAnimationUtilities = new UTimelineAnimationUtilities(asmTimelineEditor, asmTimelineEngine); }