cocos_set_property
Set literal properties like text, color, or size on Cocos Creator scene objects programmatically without manual editing.
Instructions
Set a literal (non-reference) property on any scene object.
Use this for things like _string, _fontSize, _color, etc.
For node/component references, use cocos_link_property instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| object_id | Yes | ||
| prop_name | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |