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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Perception.GroundTruth
    Assembly: Unity.Perception.Editor.dll
    Syntax
    [CameraLabelerDrawer(typeof(CameraLabeler))]
    public class CameraLabelerDrawer

    Properties

    cameraLabeler

    The cameraLabeler insta nce

    Declaration
    public CameraLabeler cameraLabeler { get; }
    Property Value
    Type Description
    CameraLabeler

    cameraLabelerProperty

    The cameraLabeler instance

    Declaration
    public SerializedProperty cameraLabelerProperty { get; }
    Property Value
    Type Description
    SerializedProperty

    Methods

    DoLabelerGUI(Rect)

    Implement this function to draw your custom GUI.

    Declaration
    protected virtual void DoLabelerGUI(Rect rect)
    Parameters
    Type Name Description
    Rect rect

    space available for you to draw the UI

    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.

    Declaration
    protected virtual float GetHeight()
    Returns
    Type Description
    float

    The height in pixels of tour camera labeler GUI

    Initialize()

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

    Declaration
    protected virtual void Initialize()
    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)