Skip to content

Instantly share code, notes, and snippets.

@neuroKip
neuroKip / Inspector_Transform.cs
Last active February 6, 2020 11:23
A Unity3D editor script to add reset buttons to the transform inspector and Vector3 copy paste functionality.Add it to a folder called Editor in your project to use it.
using UnityEngine;
using UnityEditor;
/// <summary>
/// Adds reset buttons to transforms to quickly reset position, rotation and scale to default values
/// Features:
/// - Copy and paste values in another transform by clicking on a label (E.G. Position) and using CTR+C CTRL+V
/// </summary>
[CustomEditor( typeof( Transform ) )]
public class Inspector_Transform : Editor