GUI Unity 4.6 - Down-click detection

I use the GUI for Unity 4.6 beta, and I need to detect "On Click () Down", similar to "Mouse Down". The default is a mouse.

"

Thank!

+4
source share
1 answer
  • Delete the line first OnClick().
  • Now, at the bottom of the inspector, click Add Component .
  • Select EventEvent Trigger .
  • Now Add a new event type to select a custom event.
  • , , Pointer Down.

, OnClick().

, , .

+12

All Articles