Reply To: Callbacks for UI Toolkit

FlowCanvas Forums Support Callbacks for UI Toolkit Reply To: Callbacks for UI Toolkit

#3344
Gavalakis
Keymaster

Hello again. I just re-tried and it seems to be working. This is what I did:

  • Open Preferred Types Editor and add the ‘Visual Element’ type as well as the ‘MouseDownEvent’ type in the list.
  • Made the changes to ReflectedMethodNodeWrapper.cs I mentioned above.
  • Add node “Register Callback (T) from the node browser.
  • Right click the node and in the menu select ‘Change Generic Type’ to “MouseDownEvent”.

RegisterCallbackChangeGenericType

Please let me know, or if you can please share a screenshot of your graph to see how you are connecting things up.

Thanks.

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

Attachments:
  1. RegisterCallbackChangeGenericType.png