docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UxmlUIntAttributeDescription

    Describes a XML int attribute.

    Inheritance
    object
    UxmlAttributeDescription
    TypedUxmlAttributeDescription<uint>
    UxmlUIntAttributeDescription
    Inherited Members
    TypedUxmlAttributeDescription<uint>.defaultValue
    UxmlAttributeDescription.xmlSchemaNamespace
    UxmlAttributeDescription.TryGetValueFromBag<T>(IUxmlAttributes, CreationContext, Func<string, T, T>, T, ref T)
    UxmlAttributeDescription.GetValueFromBag<T>(IUxmlAttributes, CreationContext, Func<string, T, T>, T)
    UxmlAttributeDescription.name
    UxmlAttributeDescription.obsoleteNames
    UxmlAttributeDescription.type
    UxmlAttributeDescription.typeNamespace
    UxmlAttributeDescription.use
    UxmlAttributeDescription.restriction
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.UIElements
    Assembly: Unity.Perception.Editor.dll
    Syntax
    public class UxmlUIntAttributeDescription : TypedUxmlAttributeDescription<uint>

    Constructors

    UxmlUIntAttributeDescription()

    Constructor.

    Declaration
    public UxmlUIntAttributeDescription()

    Properties

    defaultValueAsString

    The default value for the attribute, as a string.

    Declaration
    public override string defaultValueAsString { get; }
    Property Value
    Type Description
    string
    Overrides
    UnityEngine.UIElements.TypedUxmlAttributeDescription<uint>.defaultValueAsString

    Methods

    GetValueFromBag(IUxmlAttributes, CreationContext)

    Retrieves the value of this attribute from the attribute bag. Returns it if it is found, otherwise return defaultValue.

    Declaration
    public override uint GetValueFromBag(IUxmlAttributes bag, CreationContext cc)
    Parameters
    Type Name Description
    IUxmlAttributes bag

    The bag of attributes.

    CreationContext cc

    The context in which the values are retrieved.

    Returns
    Type Description
    uint

    The value of the attribute.

    Overrides
    UnityEngine.UIElements.TypedUxmlAttributeDescription<uint>.GetValueFromBag(UnityEngine.UIElements.IUxmlAttributes, UnityEngine.UIElements.CreationContext)

    TryGetValueFromBag(IUxmlAttributes, CreationContext, ref uint)

    Tries to retrieve the value of this attribute from the attribute bag. Returns it if it is found, otherwise return defaultValue.

    Declaration
    public bool TryGetValueFromBag(IUxmlAttributes bag, CreationContext cc, ref uint value)
    Parameters
    Type Name Description
    IUxmlAttributes bag

    The bag of attributes.

    CreationContext cc

    The context in which the values are retrieved.

    uint value

    Output value of the attribute

    Returns
    Type Description
    bool

    True if value was successfully received

    In This Article
    Back to top
    Copyright © 2024 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)