Node.addToGroup

Adds the node to a group. Groups are helpers to name and organize a subset of nodes, for example "enemies" or "collectables". A node can be in any number of groups. Nodes can be assigned a group at any time, but will not be added until they are inside the scene tree (see isInsideTree). See notes in the description, and the group methods in SceneTree.

struct Node
@nogc nothrow
void
addToGroup
(
StringArg0
)
(
in StringArg0 group
,
in bool persistent = false
)

Meta