Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: decoy26517 on December 28, 2017, 04:02:21 PM

Title: Getting unusual OnPress results
Post by: decoy26517 on December 28, 2017, 04:02:21 PM
Hey there,

currently using void OnPress(bool isOver) on two gameObjects. One is the ground, the other is a building on the ground. The OnPress effect seems to only work on the building when it is close to the camera. When the camera is far away OR if you click on like the far side of the building it doesn't register and instead the ground is clicked. I'm using version 3.11.4 which I think it the most recent.

What do I have wrong here?
Title: Re: Getting unusual OnPress results
Post by: decoy26517 on December 28, 2017, 04:10:09 PM
Ok think I quickly found the issue. Had the main Camera's UI camera set to 3D UI and not 3D World. Now seems to work :\

Sorry about that