No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MarkerEditorExamples.cs 471B

1234567891011121314151617181920
  1. using UnityEditor;
  2. using UnityEditor.Timeline;
  3. using UnityEngine;
  4. namespace DocCodeExamples
  5. {
  6. class MarkerEditorExamples
  7. {
  8. void MarkerRegionExample(MarkerOverlayRegion region)
  9. {
  10. #region declare-trackRegion
  11. GUI.BeginClip(region.trackRegion, -region.trackRegion.min, Vector2.zero, false);
  12. EditorGUI.DrawRect(region.markerRegion, Color.blue);
  13. GUI.EndClip();
  14. #endregion
  15. }
  16. }
  17. }