It’s possible to copy the value of any drawer targets via the right-click context menu, or using the keyboard shortcut Ctrl + C (Cmd + C on macOS).
This not only works with drawers representing simple types, but also with complex datasets, Unity Object references, Components, Assets and even GameObjects.
A copied value can be pasted onto other drawer targets via the right-click context menu, or using the keyboard shortcut Ctrl + V (Cmd + V on macOS).
We try to support copy-pasting even between different types whenever possible.
For example you could copy-paste:
- Int value to float field.
- Enum name to string field.
- Vector2 value to Vector2Int field.
- Quaternion value to rotation (Vector3) field.
- Array value to List field.
- Asset path to Unity Object field.
- Value of type T to field of type Nullable<T>.
Saved To Clipboard
Every time you copy a value, it is converted into human-readable text and stored in your system clipboard.
This means that things such as the following are now possible:
- Make quick backups of different values by pasting copied values into a text editor. This can be really useful when you are experimenting with things like various color variants or trying out different camera angles.
- Copy-paste values across different Unity editor instances. Even cross-project copy-paste is possible. This can come in handy if you need to migrate some data between different versions of your project.
- Easily send complex data such as the full state of a component or model import settings to a co-worker.
- Copied values persist even if the the Unity editor is closed or crashes.