docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OptionalValuePropertyDrawer<T, TU>

    Draws the Inspector GUI for an optional value property

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    OptionalPropertyDrawer<T, TU>
    OptionalValuePropertyDrawer<T, TU>
    OptionalDoubleDrawer
    OptionalFloatDrawer
    OptionalIntDrawer
    OptionalLongDrawer
    Inherited Members
    OptionalPropertyDrawer<T, TU>.m_HasValue
    OptionalPropertyDrawer<T, TU>.m_Value
    OptionalPropertyDrawer<T, TU>.m_HasValueField
    OptionalPropertyDrawer<T, TU>.m_ValueField
    OptionalPropertyDrawer<T, TU>.CreatePropertyGUI(SerializedProperty)
    OptionalPropertyDrawer<T, TU>.SetValue(T)
    PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)
    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: Unity.AppUI.Editor
    Assembly: Unity.AppUI.Editor.dll
    Syntax
    public class OptionalValuePropertyDrawer<T, TU> : OptionalPropertyDrawer<T, TU> where T : struct, IComparable, IComparable<T>, IFormattable where TU : BindableElement, INotifyValueChanged<T>, new()
    Type Parameters
    Name Description
    T

    The type of the optional property

    TU

    The type of the field used to edit the value of the optional property

    In This Article
    Back to top
    Copyright © 2025 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)