Undo, Redo and Multi-Object Editing
Studio keeps one undo history for the whole project. Every step belongs to a document: an open scene, or an asset whose content the Inspector edits. Changes to project files, such as renaming or deleting an asset, belong to the project as a whole. Undo and redo walk through that single history in the order the changes were made, so a step in one scene and a step in another are undone in turn.
Undo and redo
Use Edit → Undo and Edit → Redo, or the keys Ctrl+Z and Ctrl+Shift+Z (also Ctrl+Y for redo). The menu names the step it will revert, such as Undo Edit Tags, and reads plain Undo when the step has no name.
Some details that make the history predictable:
- A change made to the same objects as the previous step, within about a second of it, joins that step. A gizmo drag in the Scene view is one step however long it lasts.
- Undoing a step that belongs to another open scene brings that scene to the front first.
- Making a new change clears the steps you had undone, as in most editors.
- Studio keeps the last 200 steps. The oldest are dropped first.
- Closing a document discards its undo steps, so reopening it does not bring back changes you made before closing.
- Nothing is recorded while Play Mode shows the running copy of the scene, and undo and redo are unavailable then. Changes made in Play Mode are not undoable.
Renaming, duplicating, pasting and deleting assets in the Assets panel are undoable too. A deleted asset is moved to the project's .Cache/Trash folder together with its meta file, so undoing the delete brings it back with the same asset id.
Editing several objects
Selecting more than one object turns the Inspector into a multi-object editor.
- In the Scene view, hold Shift to add an object to the selection and Ctrl (or the Windows or Command key) to toggle one in or out. The Scene Tree and the Scene view share one selection, so what you select in either one is what the Inspector shows.
- A field shared by the selected objects is edited on all of them at once. When the objects hold different values, the field shows the mixed state (a dash in the checkbox, or an empty name with a — placeholder), and the first edit gives every object the same value. The whole edit is one Edit Selection step.
- Add Component adds the component to every selected node. Its menu lists only the components that every selected node can take.
- Removing or moving a component on a multi-selection acts on the matching component of each node: the same type, in the same position among that type.
- Tags and layer masks are edited per object. Changing a tag or a layer on several nodes keeps each node's other tags and layers.
The component's menu offers Copy Component, Paste Component Values (when the copied component has the same type) and Paste Component as New, which adds a new component of the copied type with its values.
The Inspector's field drawers
The Inspector draws each field with a drawer chosen by its type, so most data needs no code beyond the field itself.
- Tags on a node appear as removable chips, with a searchable list of the project's tags.
- Layer masks, and a node's two layer indices, use the project's named layer slots instead of raw numbers.
- References to a node, a component or an asset show the referenced object's name, with a picker to choose another one. Drag an asset from the Assets panel onto the field to assign it.
- Colors (
EngineColorandColor32) open a color picker. AVector3orVector4marked withColorUsageis edited as a color too. - Read-only text fields show their value wrapped over as many lines as it needs.
- Number fields can be dragged to change them, or clicked to type a value. A
Rangeattribute keeps a number inside its limits while you drag. - Methods marked
Buttonappear as buttons under the fields of their component, and run when pressed.
On a prefab instance, a field that differs from its prefab is marked at its left edge. Right-click the field to Revert it or Apply to Prefab. See Prefabs.
Open a second Inspector
View → New Inspector opens another Inspector. Each one is independent: its lock button in the header keeps it on the object it shows, while the other Inspector follows your selection. This is useful for comparing two objects, or for keeping a component's values in view while you select others. See Dockable Panels.
Try it
- Open a scene, select a node, and change its position in the Scene view.
- Press Ctrl+Z. The node returns to where it was, and the Edit menu reads Undo.
- Select two nodes with Shift, then set a value in the Inspector. Both nodes take it.
- Press Ctrl+Z once. Both nodes return to their earlier values, which is a single step.
Next steps
- Documents and Tabs explains how documents open, save and close.
- Keyboard Shortcuts lists the defaults and how to rebind them.
- Components shows how to declare the fields the Inspector draws.