An extension holds code GameMaker builds into the game from files: GML, JavaScript for HTML5, or native libraries (DLL on Windows, dylib on macOS, so on Linux). Make one with Create > Extension… and open it from the sidebar.
- The first row on the left is the extension itself: version, author, description, licence, help file, class name, Export to game, the targets it's copied to and supports, its options (settings the game reads with
extension_get_option_value) and the platform sections (iOS, tvOS, Android, macOS, HTML5) as text, as GameMaker has them. - Files: Add Files… (⌥⌘A) copies files into the extension's folder; New GML File… and New JavaScript File… make empty ones; files dropped on the editor are added too. Right-click a file to rename it (Rename… renames the file in the extension's folder too, and the record's name follows) or remove it (it goes to the Trash).
- A file's page has its kind, the init and final functions, the targets it's copied to, and:
- Functions (⌥⌘U): the name in GML, the external name (the function in the file), returns double or string, the arguments (click one to switch string and double, right-click to remove; Any number for a function that takes any count), Hidden, and the help line completion shows;
- Macros (⌥⌘K): constants with a value;
- Proxy files for a native library built for other platforms.
Everything is written to the extension's .yy as GameMaker writes it, and every change is one step of Edit > Undo (added files go to the Trash on Undo; removed ones come back; a renamed file gets its old name back).
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.