文档

Unity Engine

Download Unity

Unity Engine

GetValueFromBag(IUxmlAttributes, CreationContext)

Retrieves the value of this attribute from the attribute bag. Returns the value if found; otherwise, it returns defaultValue.
阅读时间1 分钟最后更新于 2 个月前

Definition

警告
Deprecated. UxmlTraits system is deprecated and will be removed. Use UxmlElementAttribute instead.
public override uint GetValueFromBag(IUxmlAttributes bag, CreationContext cc)

Parameters

The bag of attributes.

The context in which the values are retrieved.

Returns

Type

Description

uintThe value of the attribute.