Studio › Manual › Code and objects

What Rename changes

Renaming an asset (the sidebar's right-click Rename…, ⇧F2) changes every place the project names it, in one undo step:

  • Its folder, its own files, its name, and every reference in .yy files, the project file and folder order.
  • Code: the name used as a name (draw_sprite(spr_hero, 0, x, y)), and GML Visual's settings.
  • Strings that are exactly the asset's name where the code names an asset: the first argument of asset_get_index("spr_hero"), asset_get_type, and the asset tag functions (asset_has_tags, asset_add_tags…). "spr_hero_2", "the spr_hero" and other strings stay; comments stay.
  • Room 3D's creation code: a 3D or screen text's font (text_font = "fnt_title", font = "fnt_title"); for a room, the scene's env_file (and paths_file) path.
  • Room 3D's data: a renamed room's environment, paths and sound areas files (datafiles/room3d/env|paths|areas/<room>.json) take the new name, listed again in the project; the looks script (scr_r3d_looks: each object's Look in 3D, by name); in datafiles/room3d and .studio files, settings that name an asset (object, sprite, sound, font, room) when their value is exactly the name; the rooms of .studio/rides.json.
  • Room 3D's own model folders (datafiles/room3d/<model>) and things' names are Room 3D's, not GameMaker assets: rename those in the 3D room (see room3d-rename).

Only the new name is asked for; Edit > Undo puts every file back byte for byte.

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