Wiki

Clone wiki

Mono:UI / Scripts / m_property_set_value

INTRODUCED: v0.1.0
LAST UPDATED: v0.1.1
ALIAS: MONO

m_property_set_value

Sets one or more Properties of a specified instance. The Properties are provided in an array, where each Property is itself an array. In this array, the first element is the name of the Property, and the other element is the value to set that Property to.

Usage

var _i = instance_create_depth( 0, 0, 0, m_Button );

m_property_set_value( _i, [
    [ "label", "Hello World!" ]
] );

// Result: the created m_Button will have "Hello World!" on it.

Parameters

Type Name Default Description
Instance instance The instance to set the Properties of.
Array properties The Properties to set.

See Also

Updated