docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OptionalIntConverter

    UXML attribute converter for optional int values.

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

    Methods

    TryParse(string, out int)

    Tries to parse the attribute value as an int.

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

    The string to parse.

    int v

    The parsed value, or zero if parsing failed.

    Returns
    Type Description
    bool

    True if the value could be parsed, False otherwise.

    Overrides
    OptionalConverter<int>.TryParse(string, out int)
    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)