/// <summary> /// Constructs a new value display and adds it to the specified layout. /// </summary> /// <param name="layout">Layout to add the GUI element to.</param> /// <param name="width">Width of the timeline in pixels.</param> /// <param name="height">Height of the timeline in pixels.</param> public GUIGraphValues(GUILayout layout, int width, int height) { canvas = new GUICanvas(); layout.AddElement(canvas); tickHandler = new GUIGraphTicks(); SetSize(width, height); }
private static extern void Internal_GUIGraphTicks(GUIGraphTicks managedInstance, GUITickStepType stepType);
/// <summary> /// Constructs a new timeline and adds it to the specified layout. /// </summary> /// <param name="layout">Layout to add the timeline GUI to.</param> /// <param name="width">Width of the timeline in pixels.</param> /// <param name="height">Height of the timeline in pixels.</param> public GUIGraphTime(GUILayout layout, int width, int height) : base(layout, width, height) { tickHandler = new GUIGraphTicks(GUITickStepType.Time); }