Firstborn/Library/PackageCache/com.unity.timeline@1.7.1/DocCodeExamples/MarkerEditorExamples.cs

21 lines
471 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using UnityEditor;
using UnityEditor.Timeline;
using UnityEngine;
namespace DocCodeExamples
{
class MarkerEditorExamples
{
void MarkerRegionExample(MarkerOverlayRegion region)
{
#region declare-trackRegion
GUI.BeginClip(region.trackRegion, -region.trackRegion.min, Vector2.zero, false);
EditorGUI.DrawRect(region.markerRegion, Color.blue);
GUI.EndClip();
#endregion
}
}
}