Author Topic: Getting unusual OnPress results  (Read 2264 times)

decoy26517

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Getting unusual OnPress results
« 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?

decoy26517

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Getting unusual OnPress results
« Reply #1 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