docs.unity.cn
    Show / Hide Table of Contents

    Interface IActionScheduler

    Unity Service Scheduler to schedule actions on main thread.

    Namespace: Unity.Services.Core.Scheduler.Internal
    Syntax
    public interface IActionScheduler : IServiceComponent

    Methods

    CancelAction(Int64)

    Removes all instances of the given action from the queue

    Declaration
    void CancelAction(long actionId)
    Parameters
    Type Name Description
    Int64 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 = null)
    Parameters
    Type Name Description
    Action action

    Action to be scheduled.

    Double delaySeconds

    time in seconds to delay execute action

    Returns
    Type Description
    Int64

    unique Id for the scheduled action

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use