Class TopicObject
Implements the ITopicObject interface to hold information on an object selected for annotation.
Inherited Members
Namespace: Unity.Cloud.Annotation.Runtime
Syntax
public class TopicObject : ITopicObject
Constructors
TopicObject(GameObject)
Initializes and returns an instance of TopicObject.
Declaration
public TopicObject(GameObject gameObject)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.GameObject | gameObject | The gameObject that represents the topic object. |
TopicObject(Vector3, Quaternion, Vector3, List<Bounds>)
Initializes and returns an instance of TopicObject.
Declaration
public TopicObject(Vector3 position, Quaternion rotation, Vector3 localScale, List<Bounds> boundingBoxes)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.Vector3 | position | The position of the object. |
| UnityEngine.Quaternion | rotation | The rotation of the object. |
| UnityEngine.Vector3 | localScale | The localScale of the object. |
| List<UnityEngine.Bounds> | boundingBoxes | The boundingBoxes of the object. |
Properties
BoundingBoxes
Implement this property to return the object's bounding boxes.
Declaration
public List<Bounds> BoundingBoxes { get; }
Property Value
| Type | Description |
|---|---|
| List<UnityEngine.Bounds> | The selected object's bounding boxes. |
Implements
LocalScale
Implement this property to return the object's local scale.
Declaration
public Vector3 LocalScale { get; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 | The selected object's local scale. |
Implements
Position
Implement this property to return the object's position.
Declaration
public Vector3 Position { get; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 | The selected object's position. |
Implements
Rotation
Implement this property to return the object's rotation.
Declaration
public Quaternion Rotation { get; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Quaternion | The selected object's rotation. |