Reply To: Callbacks for UI Toolkit

Forums 💬 FlowCanvas ⚙️ Support Callbacks for UI Toolkit Reply To: Callbacks for UI Toolkit

#12091
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”.

    [attachment file=”RegisterCallbackChangeGenericType.png”]

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

    Thanks.