MenuItem.getAttributeValue

Queries the named @attribute on @menu_item.

If @expected_type is specified and the attribute does not have this type, %NULL is returned. %NULL is also returned if the attribute simply does not exist.

class MenuItem
getAttributeValue

Parameters

attribute string

the attribute name to query

expectedType VariantType

the expected type of the attribute

Return Value

Type: Variant

the attribute value, or %NULL

Meta

Since

2.34