Class ConsumerEndpointDrawer
Editor UI to represent possible consumers endpoints
Inherited Members
Namespace: UnityEditor.Perception.GroundTruth
Assembly: Unity.Perception.Editor.dll
Syntax
[CustomPropertyDrawer(typeof(ConsumerEndpointDrawerAttribute))]
public class ConsumerEndpointDrawer : PropertyDrawer
Methods
GetPropertyHeight(SerializedProperty, GUIContent)
Returns a property height for valid endpoints
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
SerializedProperty | property | Property to be used for calculation |
GUIContent | label | Label to draw |
Returns
Type | Description |
---|---|
float |
Overrides
OnGUI(Rect, SerializedProperty, GUIContent)
Build editor UI to represent possible consumers endpoints. Called by Unity editor
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
Rect | position | |
SerializedProperty | property | |
GUIContent | label |