docs.unity3d.com
    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
    Namespace: UnityEditor.Perception.GroundTruth
    Syntax
    public class CameraLabelerDrawer : object

    Properties

    cameraLabeler

    The cameraLabeler instance

    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
    Single

    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()
    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