Studio, User, Workspace and Personal Settings
Studio keeps its preferences in four places, called scopes. Each setting belongs to one scope, its home, and a setting can also be stored in the other scopes that allow it. The scopes differ in who they follow: the machine, you, the project for everyone who opens it, or you in one project.
Your project's own configuration, such as its product name and startup scene, is different. It is stored as data assets in the project, and it is described in Project Settings.
The four scopes
| Scope | Stored in | Follows |
|---|---|---|
| Studio | studio.json in the Studio's per-user folder |
The machine: defaults for every user and project. |
| User | settings.json in the per-user folder |
You, across every project. |
| Workspace | .gaya/settings.json inside the project |
The project, so everyone who opens it shares the values. |
| Personal | settings.json in a folder for the project, inside the per-user folder |
You, for one project only. |
The per-user folder is .gaya in your home folder. Set the GAYA_CONFIG_HOME environment variable to use another folder instead; the Studio then reads and writes its files there. Personal values are kept in a folder named after the project's identity, so they are never written into the project and never committed with it. Workspace settings are an ordinary file in the project, so a team can share them through version control.
Copying a project gives the copy a new identity, so the copy does not inherit the original's personal values.
Which value wins
When several scopes hold a value for the same setting, the highest one wins:
Studio is the lowest, then User, then Workspace, and Personal is the highest. A value nobody has set falls back to the setting's default.
The order is per setting, not per page. A page can hold one setting in the User scope and another in the Workspace scope, and each takes the value from the highest scope that holds it.
Which scope a setting belongs to
Each settings page declares a home scope in its code. Most of Studio's pages are User settings. The Asset Browser's options, for example, follow you across projects. The External Editor page is a Personal setting, so each project can use its own editor, and it is also allowed in the other scopes so a team can choose one for everyone. External Code Editors describes that choice.
Where a value is written depends on where it already lives. An edit goes to the highest scope that already holds the setting. If no scope holds it, the edit goes to the setting's home scope. So changing a setting that your team has fixed in the Workspace scope changes the team's value, not your personal one. To set your own value for that project, change the setting in the Personal tab.
Changing settings
Open Edit → Settings…, or press Ctrl+,. The Settings panel lists every page, grouped by category, with a search box at the top.
- The User and Workspace tabs are always there. The Studio and Personal tabs appear only when a page lives in that scope.
- Use the tabs to choose the scope you want to see. The Workspace tab needs an open project; without one, there is nothing to write to.
- The Personal tab needs a project with an identity. A project that has none cannot hold personal values.
- A value you have changed from its default shows a revert arrow beside it. Click it to return the value to the default.
The Asset Browser's … menu has a Settings… button that opens the Settings panel.
Keyboard shortcuts and layouts
Your keyboard shortcuts are stored with your other preferences in your User settings. The window layout is saved separately, in layout.json, so it is not a settings page. Keyboard Shortcuts explains how to rebind a key, and Dockable Panels explains the layout.
Gotchas
- A setting that looks wrong is often set in a higher scope than the one you are looking at. Check the other tabs for a value that overrides it.
- Workspace and Personal values can make two people see different things. Open the Personal and Workspace tabs before you report a problem.
- Changes to the Studio scope affect every project on the machine, so change them with care.
Next steps
- Project Settings covers the settings a game ships with.
- Panels covers the layout that the Settings panel sits beside.
- Bricks Panel and the Asset Store covers the bricks that the Studio and each project install.