add_script_component_script
Add a specific script to a script component in PlayCanvas Editor, enabling dynamic 3D web application development by specifying the entity ID and script name.
Instructions
Add a script to a script component
Input Schema
Name | Required | Description | Default |
---|---|---|---|
id | Yes | An entity ID. | |
scriptName | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"id": {
"description": "An entity ID.",
"format": "uuid",
"type": "string"
},
"scriptName": {
"type": "string"
}
},
"required": [
"id",
"scriptName"
],
"type": "object"
}