This commit is contained in:
2025-05-13 03:30:23 +03:00
parent 224cfc8cf6
commit 5c489bb6ee
554 changed files with 1114771 additions and 0 deletions
@@ -0,0 +1,22 @@
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor(typeof(Transform))]
public class TransformEditor : Editor {
public override void OnInspectorGUI (){
base.OnInspectorGUI ();
EditorGUILayout.BeginHorizontal();
if (GUILayout.Button ("Reset rotaton")) {
(target as Transform).rotation = Quaternion.identity;
}
if (GUILayout.Button ("R +90")) {
(target as Transform).Rotate(0, 90, 0);
}
if (GUILayout.Button ("R -90")) {
(target as Transform).Rotate(0, -90, 0);
}
EditorGUILayout.EndHorizontal();
}
}