Documentation

Unity Engine


User Manual

Script Reference

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.
Read time 1 minuteLast updated 13 days ago

Definition

TryGetValueFromBag(IUxmlAttributes, CreationContext, Type)

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.