Struct RootTask | Kinematica | 0.5.0-preview.1
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX