기술 자료

Unity Engine

Unity Engine

UxmlEnumAttributeDescription<T>

Describes a UXML attribute representing an enum as a string.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public class UxmlEnumAttributeDescription<T> : TypedUxmlAttributeDescription<T> where T : struct, IConvertible

Constructors

Constructor

Description

UxmlEnumAttributeDescription`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 the value if found; otherwise, it returns defaultValue.
TryGetValueFromBagAttempts to retrieve the value of this attribute from the attribute bag and returns true if found, otherwise false.

Inheritance