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

    Interface ITrait

    The interface denoting that the container is a trait.

    Namespace: Unity.AI.Planner.Traits
    Syntax
    public interface ITrait

    Methods

    GetField(String)

    Get the value of a field

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

    Name of field

    Returns
    Type Description
    Object

    Field value if field exists

    SetField(String, Object)

    Set a field on the trait (alternative to using reflection)

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

    Name of the field

    Object value

    Value to set

    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