docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OptionalStringConverter

    UXML attribute converter for optional string values.

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

    Methods

    TryParse(string, out string)

    Tries to parse the attribute value as a string.

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

    The string to parse.

    string v

    The attribute value, unchanged.

    Returns
    Type Description
    bool

    True if the value is neither null nor empty, False otherwise.

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