set_node_groups
Replace all groups of a node with a new set of group names. Specify the node path and the list of groups to assign.
Instructions
Set the groups a node belongs to (replaces existing groups)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Node path in the scene tree (e.g. 'Player/Sprite2D'). Use just the node name for root-level children (e.g. 'Player'), or empty string '' for the scene root itself. Paths are relative to the currently open scene. | |
| groups | Yes | List of group names |