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

    Struct LocationData

    The component data representation of the Location trait.

    Namespace: Generated.Semantic.Traits
    Syntax
    [Serializable]
    public struct LocationData : ICustomTraitData, IEquatable<LocationData>

    Fields

    Forward

    The forward vector of the object.

    Declaration
    public Vector3 Forward
    Field Value
    Type Description
    Vector3

    Position

    The position of the object.

    Declaration
    public Vector3 Position
    Field Value
    Type Description
    Vector3

    TransformInstanceId

    The instance ID of the transform for the semantic object.

    Declaration
    [HideInInspector]
    public int TransformInstanceId
    Field Value
    Type Description
    Int32

    Properties

    Transform

    The transform of the object. Setting this property sets the TransformInstanceId, Position, and Forward properties.

    Declaration
    public Transform Transform { set; }
    Property Value
    Type Description
    Transform

    Methods

    Equals(LocationData)

    Indicates whether another LocationData is equal to this one.

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

    The other LocationData to compare to.

    Returns
    Type Description
    Boolean

    Returns true if the two LocationData are equal.

    ToString()

    Returns the string representation of the trait.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    Returns the string representation of the trait.

    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