This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.EditorTools; | |
[EditorTool( "Look at Tool" )] | |
public sealed class LookAtTool : EditorTool { | |
private const string ICON_NAME = "ViewToolOrbit"; | |
private GUIContent cachedIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public static class ExtensionMethods | |
{ | |
#region Transform Extensions | |
public static void ResetTransformation(this Transform original) | |
{ |