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