ドキュメント

Unity Engine

Unity Engine

GetValueFromBag(IUxmlAttributes, CreationContext)

Method that retrieves an attribute's value from an attribute bag. Returns it if it is found, otherwise return defaultValue.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

注意
Deprecated. UxmlTraits system is deprecated and will be removed. Use UxmlElementAttribute instead.
public override Type GetValueFromBag(IUxmlAttributes bag, CreationContext cc)

Parameters

The attribute bag.

The context in which the method retrieves attribute values.

Returns

Type

Description

TypeThe attribute's value. If the method cannot find the value, returns defaultValue.