Shipped files and yours
Two kinds of file in your mod
Section titled “Two kinds of file in your mod”Everything in your workspaceworkspace: Your mod in Studio: every file you added or changed, kept apart from the game's own files until you install or export it. is one of two things:
- An addition: a file at a path the game ships nothing at. Your new pad, your new texture, your new script.
- An overrideoverride: Your copy of a shipped file, at the same path. While your mod is installed the game loads your copy instead of the original.: your copy of a file the game ships, at the same path. Your edited hideout, your recoloured ball.
Wherever the game would load a shipped file you’ve overridden, it loads yours instead. Everything else loads as it shipped:
- the game's, underneathyour copyball_standard.material_instance
Game loads: your copy
- the game's, underneathyour copyhideout_master.level
Game loads: your copy
- the game'sjump_pad.level
Game loads: the game's
- yours, newmy_scoreboard.vscript
Game loads: your new file
Changing a shipped file makes your copy
Section titled “Changing a shipped file makes your copy”You don’t have to copy a file before changing it. Pick any shipped asset in Studio and change a value in the Inspector: the first change makes your copy, and the Inspector’s label turns to edited · shipped to say so. Undo every change and the copy goes away again, because a copy identical to the original changes nothing.
Studio also points every package list at your copy, so the game loads it wherever it used to load the original.
Seeing what you changed
Section titled “Seeing what you changed”In a level, Studio compares every entity with the level as it shipped, and marks what differs:
| Mark | Means |
|---|---|
| Added | Nothing like it ships. Everything under it is new too. |
| Modified | It ships, and something about it differs: a value, a component, its parent, its layer, a patch on a prefab it places. |
| Removed | It ships, and your level no longer has it. Listed where it used to be. |
| Contains changes | Something under it is changed, so a folded tree still shows where to look. |
Studio compares values, so setting a field back to what it shipped with makes it unchanged again, with no mark to clear.
The Inspector shows the same answer field by field: each changed field has a dot, and resetting it puts the shipped value back.
Putting things back
Section titled “Putting things back”| To undo | Use |
|---|---|
| Your last few steps | Edit▸Undo CtrlZ |
| One field | Its reset in the Inspector |
| One entity, everything about it | Revert to shipped at the top of the Inspector |
| An entity you deleted | Restore on its row in the Outliner |
| A whole file | Assets▸Revert to Shipped |
| A file you added | Assets▸Delete from Workspace… |
Reverting a file takes your copy out of the mod, so the game loads its own again. Deleting only works on additions: a shipped path can be reverted but never deleted, since the game would still have its own file there.
For programmers
The comparison is a structural diff against the shipped file, with the type’s declared defaults filled in on both sides. Files store only non-default values, so an override stays small and a field reset to its default drops out of the file.
Where to go next
Section titled “Where to go next”Entities and components: what the files describe.