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

    Struct SelectorTask

    The selector task executes all of its children in order until it encounters a non-failure status.

    Namespace: Unity.Kinematica
    Syntax
    [Data("Selector", "#2A5637", DataType.Flag.None)]
    public struct SelectorTask : Task, GenericTask<SelectorTask>

    Properties

    self

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

    Methods

    Execute()

    Execute method for the selector task.

    Declaration
    public Result Execute()
    Returns
    Type Description
    Result

    Result of the child task that didn't execute with a failure status; success if the selector task has no children.

    Implements
    Task.Execute()
    Remarks

    The selector task executes all of its children in order until it encounters a non-failure 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(SelectorTask to Identifier<SelectorTask>)

    Implicit cast operator that allows to convert a selector task into a typed identifier.

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

    Implicit(SelectorTask to MemoryIdentifier)

    Implicit cast operator that allows to convert a selector task into an identifier.

    Declaration
    public static implicit operator MemoryIdentifier(SelectorTask task)
    Parameters
    Type Name Description
    SelectorTask task
    Returns
    Type Description
    MemoryIdentifier
    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