Studio › Manual › Editor plugins

Editor plugins

Plugins add to Studio's editor: commands with shortcuts in Code > Plugins and the command palette (⌘K), panels at the foot of the inspector, importers for other file kinds, and steps that run when a project opens, a file is saved, or a build starts or ends. A plugin is written in GML, the language of your games.

  • Code > Plugins > Plugins… (⌃⇧⌘X) lists them: switch each on or off, see what it adds and its errors, allow shell commands for one that asks.
  • A plugin is a folder with plugin.json and one or more .gml files. A project's plugins are in its .studio/plugins folder and travel with it; your own are in Studio's support folder (~/Library/Application Support/Studio/Plugins) and work in every project.
  • A project's plugins are off until you switch them on: opening a project you downloaded never runs its code by itself. Your own plugins are on unless you switch them off.
  • Add Example Plugins puts three into the project (see Example plugins); New in This Project and New for All Projects make a plugin with one command to start from.
  • Reload Plugins reads their files again after you change them (their state starts over).
  • What a plugin changes in assets is one step of Edit > Undo; what it changes in the open room is one room edit. A plugin that fails puts back every file it wrote, and its error goes to Output.
  • A plugin's shortcut that Studio already uses is left off (the Plugins page says which).

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.