modify_entities
Edit properties of one or more entities in real-time 3D web applications using dot notation for nested property paths, enabling precise adjustments within the PlayCanvas Editor environment.
Instructions
Modify one or more entity's properties
Input Schema
Name | Required | Description | Default |
---|---|---|---|
edits | Yes | An array of objects containing the ID of the entity to modify, the path to the property to modify, and the value to set the property to. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"edits": {
"description": "An array of objects containing the ID of the entity to modify, the path to the property to modify, and the value to set the property to.",
"items": {
"additionalProperties": false,
"properties": {
"id": {
"description": "An entity ID.",
"format": "uuid",
"type": "string"
},
"path": {
"description": "The path to the property to modify. Use dot notation to access nested properties.",
"type": "string"
},
"value": {
"description": "The value to set the property to."
}
},
"required": [
"id",
"path"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"edits"
],
"type": "object"
}