cocos_link_property
Link properties between components in Cocos Creator to establish references between nodes or components, or clear existing references when needed.
Instructions
Set a @property on a component to reference another node/component.
Pass target_id=None to clear the reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| component_id | Yes | ||
| prop_name | Yes | ||
| target_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |