Interface IActionScheduler
Unity Service Scheduler to schedule actions on main thread.
Namespace: Unity.Services.Core.Scheduler.Internal
Assembly: Unity.Services.Core.Internal.dll
Syntax
public interface IActionScheduler : IServiceComponent
Methods
CancelAction(long)
Removes all instances of the given action from the queue
Declaration
void CancelAction(long actionId)
Parameters
Type | Name | Description |
---|---|---|
long | actionId | unique Id for action to be canceled. |
ScheduleAction(Action, double)
Schedules the action to be invoked on the main thead, on the first frame that occurs after the given delay in seconds
Declaration
long ScheduleAction(Action action, double delaySeconds = 0)
Parameters
Type | Name | Description |
---|---|---|
Action | action | Action to be scheduled. |
double | delaySeconds | time in seconds to delay execute action |
Returns
Type | Description |
---|---|
long | unique Id for the scheduled action |