Skip to content

Instantly share code, notes, and snippets.

View Autofire's full-sized avatar

Autofire

View GitHub Profile
@GhatSmith
GhatSmith / TransformEditor.cs
Last active April 4, 2023 09:46
Custom inspector for Transform component. Add buttons to reset, copy, paste Transform values. Add context menu to round or truncate values.
using UnityEngine;
using UnityEditor;
namespace OddTales.Framework.Core.EditorExtension
{
/// <summary>
/// Custom inspector for Transform component. Using only DrawDefaultInspector would give different display.
/// Script based on Unity wiki implementation : https://wiki.unity3d.com/index.php/TransformInspector
/// Buttons to reset, copy, paste Transform values.