Author Topic: Event Trigger giving errors when clicking and dragging  (Read 29306 times)

arkon3

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 71
    • View Profile
Event Trigger giving errors when clicking and dragging
« on: December 16, 2016, 03:19:08 AM »
I am a veteran now with NGU but I've just updated it in a project and the Event Trigger component now looks different and I can't get it to work. The error I'm getting is:

MissingMethodException: The best match for method OnSelect has some invalid parameter. and:
MissingMethodException: The best match for method OnDrag has some invalid parameter.

in my code the functions look like this:

 public void OnBearingDrag(Vector3 Delta)
   {
   }

and:

  public void OnBearingPressedDown(bool pressed)
  {
  }

And these are the functions I'm putting into event trigger for Pointer Down and Drag.

Where can I find updated documentation that describes event trigger and what the events need now?

arkon3

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 71
    • View Profile
Re: Event Trigger giving errors when clicking and dragging
« Reply #1 on: December 16, 2016, 03:28:37 AM »
Ignore last post, I just discovered I'd dropped the Unity Event Trigger component on the control and not the NGUI UIEventTrigger!!