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
/* | |
Unity editor script to precisely move, rotate and scale GameObjects on 2D scenes, using the arrow keys. | |
Notes: | |
- To use it just include it on an "Assets/Editor" folder on your project. | |
- The action depends on the selected tool and the size of the movement depends on the Scene view zoom. | |
- The more "zoomed in" is the scene view the smaller is the movement step. | |
- It will work when the current Scene tab is in 2D mode and there is at least one gameObject selected, | |
otherwise the scene camera will move as usual :) |
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
/************************************************************ | |
* Better Singleton by David Darias | |
* Use as you like - credit where due would be appreciated :D | |
* Licence: WTFPL V2, Dec 2014 | |
* Tested on Unity v5.6.0 (should work on earlier versions) | |
* 03/02/2017 - v1.1 | |
* **********************************************************/ | |
using System; | |
using UnityEngine; |