You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
471 B
C#
21 lines
471 B
C#
1 year ago
|
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
|
||
|
}
|
||
|
}
|
||
|
}
|