UI Toolkit binding to non monobehaviours

Hiya, is it possible to bind to a non monobehaviour class? No fields/properties show up in the “data source path” list when I try to bind and SerializedField won’t do anything in a non mono class (I think?).
image

If I want my ui to reflect the values on a regular class can I just update the ui every frame or is that a big nono?

(using Unity 6 btw)

Many thanks!

Yes this can be done but you will need to configure the data source through a script.

This is an example of doing it with a list

Thank you so much! This is the best example, I am necroposting because this is the best answer I found in 1 hour