This file contains hidden or 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 UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// This window shows how you can listen for and consume user input events | |
/// from the Scene View. Super useful for making editor tools! | |
/// </summary> | |
public class SceneViewControlWindow : EditorWindow | |
{ | |
/// <summary> |
This file contains hidden or 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
// Usage: | |
// H("foobar") ===> replaced by uint during compilation | |
// macro hashing function by http://chrissavoie.com/index.php?option=com_content&task=view&id=14&Itemid=1 | |
#define HASH_CONSTANT 5381 | |
// The following is the guts of the compile-time hasher |