Show Posts

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.


Messages - harshman_chris

Pages: [1]
1
NGUI 3 Support / Re: UIButton Hovering
« on: May 18, 2014, 11:56:02 AM »
It might not be the best practice, I re-factored the code and second collider to make it better, did not however fix the problem.

2
NGUI 3 Support / Re: UIButton Hovering
« on: May 17, 2014, 08:29:05 PM »
That may be the case and it normally is, but  I have tested both methods as I mentioned and it did not change anything.

As for the large collider it is used to detect enemies with a range, and cache them rather than doing a search for enemies every .xxx seconds. Unfortunately both colliders are on the same object.

3
NGUI 3 Support / Re: UIButton Hovering
« on: May 16, 2014, 03:29:38 PM »
I think it is because the button gets disabled when I turn off the sprite, and then when I turn it back on it gets enabled. I am not sure, and as far as I know it should actually pick up if using a ray trace. I just know it is not, until I move the mouse on and off the button. Clicking the button still works, but it will not show the hover or trigger tooltips.

I have turned off ray casting hitting triggers, a requirement because I use large trigger area's for finding enemies. I changed the colliders that are created on the UI elements to not be triggers but that shouldn't change anything like this since the UICamera works off raycasting. I have tested them as triggers with the same result as well.

With the tween example the mouse may not move but the button is moving, with this neither is moving, I am not sure why that makes a difference.

I have spent some time going through the camera code and as far as I can tell it should actually work, why it is not I am unsure at this time.

4
NGUI 3 Support / UIButton Hovering
« on: May 16, 2014, 11:15:43 AM »
I have 3D objects that when clicked on they open a Menu of UIButtons, these buttons have tooltips. The problem is that the UIButton does not trigger that the mouse is over the UIButton when the button is enabled when it is under the mouse at time of being enabled.

I am looking for a way to force a check to see if the mouse is over the UIButton.


Pages: [1]