修改组件属性和引用并读回验证
cocos_component_setUpdate component properties and references in Cocos Creator projects, then read back the results to verify the changes.
Instructions
修改组件属性和引用并读回验证
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"params": "<params>"
},
"name": "cocos_component_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | ||
| projectId | Yes | ||
| instanceId | No | ||
| operationId | No | ||
| expectedRevision | No | ||
| runtimeInstanceId | No |