docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OptionalFloatDrawer

    Draws the Inspector GUI for an optional float property

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    OptionalPropertyDrawer<float, FloatField>
    OptionalValuePropertyDrawer<float, FloatField>
    OptionalFloatDrawer
    Inherited Members
    OptionalPropertyDrawer<float, FloatField>.m_HasValue
    OptionalPropertyDrawer<float, FloatField>.m_Value
    OptionalPropertyDrawer<float, FloatField>.m_HasValueField
    OptionalPropertyDrawer<float, FloatField>.m_ValueField
    OptionalPropertyDrawer<float, FloatField>.CreatePropertyGUI(SerializedProperty)
    OptionalPropertyDrawer<float, FloatField>.SetValue(float)
    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
    [CustomPropertyDrawer(typeof(Optional<float>))]
    public class OptionalFloatDrawer : OptionalValuePropertyDrawer<float, FloatField>

    Methods

    SetValue(float)

    Sets the value of the property in the serialized object

    Declaration
    protected override void SetValue(float newValue)
    Parameters
    Type Name Description
    float newValue

    The new value of the property

    Overrides
    OptionalPropertyDrawer<float, FloatField>.SetValue(float)
    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)