Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UxmlAssetAttributeDescription<T>

Describes a UXML Object attribute referencing an asset in the project. In UXML, this is referenced as a string URI.
Read time 1 minuteLast updated 12 days ago

Definition

public class UxmlAssetAttributeDescription<T> : TypedUxmlAttributeDescription<T> where T : Object

Constructors

Constructor

Description

UxmlAssetAttributeDescription`1()Constructor.

Properties

Property

Description

defaultValueAsStringThe default value for the attribute, as a string.

Methods

Method

Description

GetValueFromBagRetrieves the value of this attribute from the attribute bag. Returns it if it is found, otherwise return null.
TryGetValueFromBagAttempts to retrieve the value of this attribute from the attribute bag and returns true if found, otherwise false.

Inheritance