Skip to main content
Version: 9.0.2

GROUP:clone

GROUP:clone(
name,
parent,
data
)

Create a new group (new_object_name), within an existing parent layer (parent_name) by copying all of the properties and children of this group. This new object will have all of the same actions, variables and it's current state will match the state of this control. All of the reference group's controls will be cloned into the new group.

The data argument is a table of properties that match the properties for that type of object as described in the gre.set_group_attrs() function.

Parameters

NameTypeDescription
new_object_name#stringThe name for the new object, this must be a unique name in the parents namespace.
parent_name#stringThe name of the layer to place this object within, this object must exist.
data#table(Optional) A table containing group attribute tags as the keys with new values to be applied.

Returns

TypeDescription
gredom#groupA GROUP object representing the newly created group.