Skip to content

Instantly share code, notes, and snippets.

View olange's full-sized avatar
🚀

Olivier Lange olange

🚀
View GitHub Profile
@olange
olange / ShowMyTransforms.cs
Last active January 20, 2016 18:10 — forked from david-hodgetts/ShowMyTransforms.cs
An Unity Gizmo that displays the origin and orientation of a _game object_ when it is selected in the _Editor_, displaying its right/forward/up as red/blue/green axis
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class ShowTransforms : MonoBehaviour {
private const float radius = 0.02f;
void OnDrawGizmosSelected() {
Vector3 origin, axisRight, axisForward, axisUp;