Skip to content

Instantly share code, notes, and snippets.

View RyanNielson's full-sized avatar

Ryan Nielson RyanNielson

View GitHub Profile
@RyanNielson
RyanNielson / TransformEditor2D.cs
Last active February 3, 2020 11:23
A custom Inspector for Unity's Transform component to make it nicer when working on 2D games.
using UnityEngine;
using UnityEditor;
[CanEditMultipleObjects, CustomEditor(typeof(Transform))]
public class TransformEditor2D : Editor
{
public override void OnInspectorGUI()
{
Transform transform = (Transform)target;