docs.unity3d.com
    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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023