docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ConsumerEndpointDrawer

    Editor UI to represent possible consumers endpoints

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    ConsumerEndpointDrawer
    Inherited Members
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)
    PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
    PropertyDrawer.attribute
    PropertyDrawer.fieldInfo
    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
    [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
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)

    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
    Overrides
    PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
    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)