ドキュメント

Unity Engine

Unity Engine

TryGetValueFromBag(IUxmlAttributes, CreationContext, ref Type)

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

Definition

TryGetValueFromBag(IUxmlAttributes, CreationContext, Type)

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

Parameters

The attribute bag.

The context in which the method retrieves attribute values.

value

The attribute's value.

Returns

Type

Description

boolTrue if the method can retrieve the attribute's value. False otherwise.