Why can not Add Custom Event for Dispatcher

I am trying to bind custom event why it shows signature is wrong?

I think it will be because your custom event does not have the same parameters as the dispatcher?

It’s because you’re inside a function where events can’t live. You can do this instead:

And then place the event outside the function.

  • or bind it to another function
  • or get crafty:

image

1 Like

Sorry, I do not know, but it seems that there is no “add custom event” in function.

1 Like

OK,I move the event outside the function. Now it runs properly. Thank you!

2 Likes