docs.unity3d.com
    Show / Hide Table of Contents

    Class UxmlUIntAttributeDescription

    Describes a XML int attribute.

    Inheritance
    Object
    UxmlUIntAttributeDescription
    Namespace: UnityEngine.Perception.UIElements
    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

    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
    UInt32

    The value of the attribute.

    TryGetValueFromBag(IUxmlAttributes, CreationContext, ref UInt32)

    Declaration
    public bool TryGetValueFromBag(IUxmlAttributes bag, CreationContext cc, ref uint value)
    Parameters
    Type Name Description
    IUxmlAttributes bag
    CreationContext cc
    UInt32 value
    Returns
    Type Description
    Boolean
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023