1
Support / Re: Drawing lines using the GL class
« on: January 21, 2014, 10:25:24 pm »
I wanted to avoid Vectrosity for as long as possible (30 bucks is kinda steep) but I bought it now and it works perfectly. Thanks for the help.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
void OnSceneGUI(SceneView sceneView)
{
Event e = Event.current;
int xx, yy;
if (e.type == EventType.MouseDrag && e.button == 0 && e.isMouse)
{
tileMap.GetTileAtPosition(tk2dCamera.Instance.camera.ScreenToWorldPoint(e.mousePosition), out xx, out yy);
}
}