docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DateRangeConverter

    UXML attribute converter for DateRange values.

    Inheritance
    object
    UxmlAttributeConverter<DateRange>
    DateRangeConverter
    Inherited Members
    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 DateRangeConverter : UxmlAttributeConverter<DateRange>

    Methods

    FromString(string)

    Converts a UXML attribute value into a DateRange.

    Declaration
    public override DateRange FromString(string value)
    Parameters
    Type Name Description
    string value

    The attribute value to convert.

    Returns
    Type Description
    DateRange

    The converted range, or the default range if the value is empty or cannot be parsed.

    Overrides
    UxmlAttributeConverter<DateRange>.FromString(string)

    ToString(DateRange)

    Converts a DateRange into its UXML attribute representation.

    Declaration
    public override string ToString(DateRange value)
    Parameters
    Type Name Description
    DateRange value

    The range to convert.

    Returns
    Type Description
    string

    The string representation of the range.

    Overrides
    UnityEditor.UIElements.UxmlAttributeConverter<Unity.AppUI.Core.DateRange>.ToString(Unity.AppUI.Core.DateRange)
    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)