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.
CrowdControl/Assets/3rd/Plugins/Smart-Inspector/Runtime/Fluent UITK/FluentElement.Scheduling.cs

19 lines
482 B
C#

using System;
using UnityEditor;
using UnityEngine.UIElements;
namespace AV.UITK
{
public partial class FluentElement<T> where T : VisualElement
{
public IVisualElementScheduledItem Schedule(Action<FluentElement<T>> action, long delay = -1)
{
var scheduled = schedule.Execute(() => action(this));
if (delay != -1)
scheduled.StartingIn(delay);
return scheduled;
}
}
}