Let us bind buttons to Scriptable Object Methods inside UI Builder

I really like that you can drag and drop a Scriptable Object into UI Builder and begin binding properties. It would be great if you could also bind buttons ‘OnClick’ Event to different methods in the Scriptable Object. This would fully decouple UI from any custom code, which would be nice.

My one gripe with UI Toolkit is that everything needs a custom script to work properly, even simple button clicks.

2 Likes

I would also like to see the UI builder buttons be able to take Unity events the way UGUI buttons can.
I should be able to make one button a prefab and then duplicate change text and change the attached objects to run scripts or simply enable and disable things without writing a script that has to register and unregister a bunch of buttons that each call a custom function.
The design system in UI Builder is a nice improvement but the implementation of functionality is such a pain.

1 Like