Struct PlanningAgent | AI Planner | 0.2.4-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct PlanningAgent

    A custom trait for marking the planning agent (automatically set by planner)

    Namespace: Unity.AI.Planner.Traits
    Syntax
    public struct PlanningAgent : ICustomTrait, ITrait, IBufferElementData, IEquatable<PlanningAgent>

    Methods

    Equals(PlanningAgent)

    Indicates the equality of another PlanningAgent and this instance.

    Declaration
    public bool Equals(PlanningAgent other)
    Parameters
    Type Name Description
    PlanningAgent other

    The other PlanningAgent instance for comparison.

    Returns
    Type Description
    Boolean

    Always returns true.

    GetField(String)

    GetField is deprecated. Cast the trait to the appropriate type, then access the field.

    Declaration
    [Obsolete("GetField is deprecated. Cast the trait to the appropriate type, then access the field.")]
    public object GetField(string fieldName)
    Parameters
    Type Name Description
    String fieldName

    The field name to be read.

    Returns
    Type Description
    Object

    The value of the field.

    Implements
    ITrait.GetField(String)
    Exceptions
    Type Condition
    ArgumentException

    Always throws an exception. PlanningAgent contains no fields.

    SetField(String, Object)

    SetField is deprecated. Cast the trait to the appropriate type, then access the field.

    Declaration
    [Obsolete("SetField is deprecated. Cast the trait to the appropriate type, then access the field.")]
    public void SetField(string fieldName, object value)
    Parameters
    Type Name Description
    String fieldName

    The name of the field to be set.

    Object value

    The value for the field.

    Implements
    ITrait.SetField(String, Object)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()
    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