Playcanvas editor scripting

From teknokomo/universo-platformo-react · View interactive version

Playcanvas editor scripting is an AI agent skill from the GitHub repository teknokomo/universo-platformo-react. Use when working with the PlayCanvas Editor scripting system, script attributes, Monaco editor integrations, ESM scripts, hot reloading, or editor scripts compilation.

How to use this skill

Skill file

PlayCanvas Editor Scripting

Use this skill when authoring, compiling, or integrating scripts, script attributes, hot-reload handlers, or Monaco code editor components.

Version Guard

Required Output

Before modifying script configurations or attributes:

Workflow

  1. Declare scripts as ES6 classes extending pc.ScriptType.
  2. Attributes must be declared using ScriptType.attributes.add(name, options).
  3. Monaco editor compiles scripts in-memory and validates them against the playcanvas TypeScript definitions.
  4. Hot reload updates active script instances in the viewport without re-booting the application.

Blocking Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.