Class KeypointValue
The value of an individual keypoint on a keypoint component.
Namespace: UnityEngine.Perception.GroundTruth
Syntax
public class KeypointValue : object, IMessageProducer, ICloneable
Fields
location
The location of the keypoint
Declaration
public Vector2 location
Field Value
Type | Description |
---|---|
Vector2 |
Properties
index
The index of the keypoint in the template file
Declaration
public int index { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
state
The state of the point, 0 = not present, 1 = keypoint is present but not visible, 2 = keypoint is present and visible
Declaration
public int state { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Clone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
Object |
ToMessage(IMessageBuilder)
Convert contents int a message.
Declaration
public void ToMessage(IMessageBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IMessageBuilder | builder | The message builder that will convert the class's contents into a message |