How do I properly implement a runtime MultiColumnListView?

I followed the MultiColumnListView Documentation to implement basic table. The example provided uses SerializedObject(...) and MultiColumnListView.Bind(...), both these methods are only present in UnityEditor and don’t work when built. Is there an example somewhere of how to implement a MultiColumnListView without depending on UnityEditor?

Any help will be much appreciated.

Managed to figure it out, instead of using the following lines from the documentation

var so = new SerializedObject(monstersTeam);
multiColumnListView.Bind(so);

to bind to data during runtime use the following:

multiColumnListView.itemsSource = monstersTeam;
1 Like