기술 자료

Unity Engine

Unity Engine

UxmlAssetAttributeDescription<T>

Describes a UXML Object attribute referencing an asset in the project. In UXML, this is referenced as a string URI.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

경고
Deprecated. UxmlTraits system is deprecated and will be removed. Use UxmlElementAttribute instead.
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