docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CameraLabelerDrawer

    Base class for all inspector drawers for CameraLabeler types. To override the inspector for a CameraLabeler, derive from this class and decorate the class with a CameraLabelerDrawerAttribute

    Inheritance
    object
    CameraLabelerDrawer
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.Perception.GroundTruth
    Assembly: solution.dll
    Syntax
    [CameraLabelerDrawer(typeof(CameraLabeler))]
    public class CameraLabelerDrawer

    Properties

    Name Description
    cameraLabeler

    The cameraLabeler instance

    cameraLabelerProperty

    The cameraLabeler instance

    Methods

    Name Description
    DoLabelerGUI(Rect)

    Implement this function to draw your custom GUI.

    GetHeight()

    Implement this functions if you implement DoLabelerGUI(Rect). The result of this function must match the number of lines displayed in your custom GUI. Note that this height can be dynamic.

    Initialize()

    Use this function to initialize the local SerializedProperty you will use in your labeler.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)