Skip to content

Instantly share code, notes, and snippets.

@codeimpossible
Created May 5, 2014 19:16
Show Gist options
  • Save codeimpossible/82c1be803d994d81ac13 to your computer and use it in GitHub Desktop.
Save codeimpossible/82c1be803d994d81ac13 to your computer and use it in GitHub Desktop.
ERMAH GERD WHY NO GIZMOS?!?!?!
[ExecuteInEditMode]
public class TileLayer : MonoBehaviour
{
public Vector2 LayerSize;
public Vector2 CellSize;
public Color GridColor;
public bool DrawGridLines;
public bool DrawPaintbrushGuide;
public Vector3 TileSectionStart;
public Vector3 TileSelectionEnd;
public Dictionary<Vector3, GameObject> Map;
public void Awake()
{
Debug.Log("AWAKE");
}
public void OnEnable()
{
Debug.Log("ENABLE");
}
public void OnDrawGizmosSelected()
{
Debug.Log("DRAW_GIZMOS_SELECTED");
Gizmos.color = GridColor;
Gizmos.DrawCube(transform.position, new Vector3(100f, 100f, 100f));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment