Reply To: Best way to get onClick event from instantiated buttons?

NodeCanvas Forums Support Best way to get onClick event from instantiated buttons? Reply To: Best way to get onClick event from instantiated buttons?

#11408
Gavalakis
Keymaster

Hello,

The Button reference in the ButtonClicked condition, can also be used with Variables instead of only direct references. As such, you can instantiate your Button, store the instance in a temporary variable and use that variable in the ButtonClicked condition.

ButtonInstanceVariable

While there are some actions included to handle Lists, because each separate button onClick event is usually used to perform something different, each button registration is implemented as a different Condition.

What actions does Playmaker have that can benefit in your case? If you let me know I could create such an action for you in NodeCanvas, so that you don’t have to perform additional operations in Playmaker just for this.

Let me know.
Thanks!

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. ButtonInstanceVariable.png