Support => NGUI 3 Support => Topic started by: QuantumMechanic on October 20, 2016, 08:21:13 PM
Title: Upgrade questions..
Post by: QuantumMechanic on October 20, 2016, 08:21:13 PM
We are in the midst of upgrading from 3.4.8 to 3.10.2 -- Yes, it has been a while. We have run into a couple of questions.
The signature for UICamera Raycast has changed from:
staticpublicbool Raycast (Vector3 inPos, out RaycastHit hit)
To:
/// <summary>
/// Returns the object under the specified position.
/// </summary>
staticpublicbool Raycast (Vector3 inPos)
How do I determine what object the raycast hit?
UIPanel's no longer has a hard clipping option. What's the correct way to accomplish a hard clip with texture clipping?
Is there a new equivalent to the formerly available UIPanel.onChange?
Seems like there are a lot of nice new features to play with. Any hidden gotchas for folks who have not upgraded for a while?
Title: Re: Upgrade questions..
Post by: ArenMook on October 24, 2016, 06:47:39 AM
UICamera.lastHit stores it.
What did you use onChange for? In the current dev build of NGUI I actually added UIPanel.onCreateDrawCall because I needed access to the draw call's game object in order to add LOD to it.