Hi - I'm new to NGUI and am enjoying it so far. I ran into something though and didn't know the solution.
My mainCamera has the UICamera script on it,
and I have an environment that is something like this:
Environment_Root
Terrain
TerrainObject
TerrainObject_Example
TerrainObject
TerrainObject
TerrainObject
TerrainObject
…and so on.
If I put an OnPressed() script on Environment_Root, it doesn't receive presses. If I put it on TerrainObject_Example, then that one object gets presses. I'm looking for a way to receive a notification whenever the player taps on the environment, and handle the tap accordingly.
Is it necessary to put an OnPress() script on every piece of environment geometry with a collider? Or is there a way to have the Environment_Root object get the OnPressed() call for every press on a child object?