cocos_set_node_layer
Set a node's layer bitmask in Cocos Creator scenes to control rendering and interaction groups, using predefined values like UI_2D or DEFAULT.
Instructions
Set a node's layer bitmask. Common: UI_2D=33554432, DEFAULT=1073741824.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| layer | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |