Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetValueFromBag(IUxmlAttributes, CreationContext)

Retrieves the value of this attribute from the attribute bag. Returns the value if found; otherwise, it returns defaultValue.
Read time 1 minuteLast updated 10 days ago

Definition

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

Parameters

The bag of attributes.

The context in which the values are retrieved.

Returns

Type

Description

ColorThe value of the attribute.