Struct ActionTask | Kinematica | 0.7.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ActionTask

    An action task acts as a grouping mechanism for tasks.

    Namespace: Unity.Kinematica
    Syntax
    [Data("Action", "#372A56", DataType.Flag.TopologySort)]
    public struct ActionTask : Task, GenericTask<ActionTask>
    Remarks

    Tasks that are created inside of an action task will be automatically arranged in a directed acyclic graph and execute in topological order.

    Properties

    self

    Identifier that represents the instance of this action task.

    Declaration
    public Identifier<ActionTask> self { get; set; }
    Property Value
    Type Description
    Identifier<ActionTask>
    Implements
    GenericTask<T>.self

    Methods

    Execute()

    Execute method for the action task.

    Declaration
    public Result Execute()
    Returns
    Type Description
    Result

    Failure if one of the child tasks fails; success if the action task has no children or all tasks have succeeded.

    Implements
    Task.Execute()
    Remarks

    Action tasks execute its children in topological order until a child task returns a failure status. The action task returns a success status if all children return a success status.

    ExecuteSelf(ref TaskPointer)

    Surrogate method for automatic task execution.

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

    Task reference that is supposed to be executed.

    Returns
    Type Description
    Result

    Result of the task execution.

    Operators

    Implicit(ActionTask to Identifier<ActionTask>)

    Implicit cast operator that allows to convert an action task reference into an typed identifier.

    Declaration
    public static implicit operator Identifier<ActionTask>(ActionTask task)
    Parameters
    Type Name Description
    ActionTask task
    Returns
    Type Description
    Identifier<ActionTask>

    See Also

    Task
    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