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 - daku

Pages: [1]
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:

  1. if (Physics.Raycast(ray, out hit, dist, mask))

to this

  1. 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?

Pages: [1]