Author Topic: Raycast cannot be detect at the edge of the camera  (Read 3785 times)

cheuksh

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Raycast cannot be detect at the edge of the camera
« on: May 06, 2012, 02:09:09 PM »
End up all event, including press,click, hover is not working for the button at the edge, attached two screenshot. With the button 0 hover effect set to flat outline. u can see screenshot 1 when the mouse is near the edge of left hand side, raycast cannot be detected..while, when I move the mouse a little right, hover can be detected. (The screen capture cannot capture my mouse cursor, I add them back by photo edit. So just neglect the little color difference near the cursor, it just for indication purpose.) When I built it, button 0,4,5,9 cannot be pressed...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Raycast cannot be detect at the edge of the camera
« Reply #1 on: May 06, 2012, 06:56:23 PM »
There is no difference of where the collider is. It will work exactly the same.

Make sure you don't have another collider covering the button and that the collider's dimensions are what you think they are.