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
Inherited Members
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. |