Struct RootTask | Kinematica | 0.5.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct RootTask

    The root task is the only mandatory task that exsists in a task graph and is implicitely created as part of the task graph execution system. It is responsible for executing the optional part of the task graph.

    Namespace: Unity.Kinematica
    Syntax
    [Data("Root", "#2A5637", DataType.Flag.None)]
    public struct RootTask : Task

    Methods

    Execute()

    Execute method for the root task.

    Declaration
    public Result Execute()
    Returns
    Type Description
    Result

    Result of the root task.

    Implements
    Task.Execute()
    Remarks

    The root task executes its children in order until a child task returns a success status. The root task unconditionally returns a success status.

    ExecuteSelf(ref TaskRef)

    Surrogate method for automatic task execution.

    Declaration
    public static Result ExecuteSelf(ref TaskRef self)
    Parameters
    Type Name Description
    TaskRef self

    Task reference that is supposed to be executed.

    Returns
    Type Description
    Result

    Result of the task execution.

    Back to top
    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