docs.unity3d.com
    Show / Hide Table of Contents

    Class TopicObject

    Implements the ITopicObject interface to hold information on an object selected for annotation.

    Inheritance
    Object
    TopicObject
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    ITopicObject.BoundingBoxes

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

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

    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.

    Implements
    ITopicObject.Rotation
    Back to top
    Terms of use
    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