1
Support / Re: GetBounds not working anymore
« on: November 25, 2013, 03:47:59 pm »
My error, sorry. My tk2dSprite reference was null because I was doing something wrong, hence the GetBounds not working.
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.
Ray ray = hudCamera.ScreenPointToRay(Input.mousePosition);
RaycastHit hit = new RaycastHit();
// check hits on HUD
if (Physics.Raycast(ray, out hit, Constants.HUDRayDistance)) {
.