1
NGUI 3 Support / QueryTriggerInteraction.Collide on UICamera.cs
« on: October 07, 2016, 10:33:52 AM »
Hey, when you uncheck "Queries Hit Triggers" in Unity's PhysicsManager, some functionalities of NGUI no longer work, notably the ScrollAreas.
It's easily fixed by changing l. 592 of UICamera.cs from this:
to this
without damaging the framework (triggers will still get hit).
Can this fix be included in the next update?
It's easily fixed by changing l. 592 of UICamera.cs from this:
- if (Physics.Raycast(ray, out hit, dist, mask))
to this
- if (Physics.Raycast(ray, out hit, dist, mask, QueryTriggerInteraction.Collide))
without damaging the framework (triggers will still get hit).
Can this fix be included in the next update?
