set_script_text
Update script content in PlayCanvas Editor by specifying the asset ID and new text, enabling real-time 3D application development.
Instructions
Set script text
Input Schema
Name | Required | Description | Default |
---|---|---|---|
assetId | Yes | ||
text | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"assetId": {
"type": "number"
},
"text": {
"type": "string"
}
},
"required": [
"assetId",
"text"
],
"type": "object"
}