docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OptionalFloatConverter

    UXML attribute converter for optional float values.

    Inheritance
    object
    UxmlAttributeConverter<Optional<float>>
    OptionalConverter<float>
    OptionalValueConverter<float>
    OptionalFloatConverter
    Inherited Members
    OptionalConverter<float>.FromString(string)
    OptionalConverter<float>.ToString(Optional<float>)
    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 OptionalFloatConverter : OptionalValueConverter<float>

    Methods

    TryParse(string, out float)

    Tries to parse the attribute value as a float.

    Declaration
    protected override bool TryParse(string value, out float v)
    Parameters
    Type Name Description
    string value

    The string to parse.

    float v

    The parsed value, or zero if parsing failed.

    Returns
    Type Description
    bool

    True if the value could be parsed, False otherwise.

    Overrides
    OptionalConverter<float>.TryParse(string, out float)
    In This Article
    Back to top
    Copyright © 2026 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)