ドキュメント

Unity Engine

Unity Engine

TryGetValueFromBag(IUxmlAttributes, CreationContext, out T)

Attempts to retrieve the value of this attribute from the attribute bag and returns true if found, otherwise false.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

TryGetValueFromBag(IUxmlAttributes, CreationContext, T)

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

Parameters

The bag of attributes.

The context in which the values are retrieved.

value

T
The value of the attribute.

Returns

Type

Description

boolTrue if the value is found, false otherwise.