Version: 2021.1
public bool TryGetValueFromBag (UIElements.IUxmlAttributes bag, UIElements.CreationContext cc, ref Hash128 value);

参数

bag 属性包。
cc The context in which the method retrieves values.
value 属性的值。

返回

bool True if the method retrieves the value, false otherwise.

描述

This method tries to retrieve the value of the attribute from the attribute bag. If it finds the attribute, it returns true. Otherwise, it returns false.