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. |