Since 2020.1 alpha 23 there is this release notes item: “Editor: Added Copy/Paste support for most inspector fields (vectors, colors, object references, gradients, animation curves …). All they produce text in system clipboard, and the copied values can be sent to someone else or pasted into another Unity instance.” Here’s a bit more about it.
Added Copy/Paste keyboard shortcuts and context menus to Serialized Property fields (e.g. in Inspector, or anywhere else they are displayed) for most types. This is: Vector2, Vector3, Vector4, Quaternion, Color, Object Reference, Gradient, Animation Curve, Rect, Bounds, LayerMask, Enum, Bool, RectInt, Vector2Int, Vector3Int.
All these produce text-based representation in the system Clipboard, so you can send that to someone else on a chat, or paste into a text document, or into another Unity instance, etc. Examples of text representations produced by copying simple fields:
Vector3(10,11,12)
Vector3(60.0,30.0,45.0)
Quaternion(0.531975687,0.0222599953,0.200562119,0.822363079)
#ACFF04
Color(0.1,3,4,1)
Bounds(1,-2.5,3.7,1.5,-2,7.7)
More complex ones are copied/pasted from a TypePrefix:JSON format, for example an animation curve:
UnityEditor.AnimationCurveWrapperJSON:{"curve":{"serializedVersion":"2","m_Curve":[{"serializedVersion":"3","time":0.016666412353515626,"value":0.660369873046875,"inSlope":2.0,"outSlope":2.0,"tangentMode":0,"weightedMode":0,"inWeight":0.3333333432674408,"outWeight":0.3333333432674408},{"serializedVersion":"3","time":1.0,"value":1.0,"inSlope":0.0,"outSlope":0.0,"tangentMode":0,"weightedMode":0,"inWeight":0.3333333432674408,"outWeight":0.3333333432674408}],"m_PreInfinity":2,"m_PostInfinity":2,"m_RotationOrder":4}}
Some fields have slightly more specialized context menus, e.g. Quaternion fields can copy either euler angles, or the raw quaternion:
Or an object reference field can also copy path or the GUID:
Scene view camera window menu can now copy/paste the camera placement (position+rotation), and the settings themselves. And again that produces just a text in clipboard, so you can send that off to someone else and they can paste into their own scene view.
In the Animation Window, animation events can also be copied/pasted, either via keyboard shortcuts or the context menus:
The same is for the animation clip editor in the model import settings events part:
Let us know what you think!
Note: a bunch of possible clipboard improvements are not made yet, for example:
- C# APIs to copy/paste typed things into Clipboard from code,
- Support for more SerializedProperty field types (custom structs/classes, arrays, …)
- Change “Copy Component” and friends to also produce text-based data in system clipboard, so you could paste that into another Unity instance, send to someone, etc.
- Look into a hundred other places in the editor, where Copy/Paste would be needed, and add that there.