Property trackRegion
trackRegion
The sub-area of the timelineRegion where the tracks are drawn.
The region extends from the bottom of the time ruler, or the timeline marker region if not hidden. Use this region to clip overlays that should not be drawn over the timeline marker region or time ruler.
Declaration
public Rect trackRegion { get; }
Property Value
Type | Description |
---|---|
Rect |
Examples
GUI.BeginClip(region.trackRegion, -region.trackRegion.min, Vector2.zero, false);
EditorGUI.DrawRect(region.markerRegion, Color.blue);
GUI.EndClip();