Update Addressables window contents

So after adding assets to a group in the addressables window, using c#, the group created is empty, but if I close and open the tab the group has assets, I assume I am not refreshing the data for the window. After adding the assets to the group I tried :

AssetDatabase.Refresh();
and
EditorUtility.SetDirty();

Is there something else I could use?
Thank you

What API are you using to set the thing as addressable? Most of our API’s have a “postEvent” flag you can optionally set. When true they’ll post an event that the GUI is listening for, triggering it to reload. Perhaps you are calling something with that set to false?

Yes I was calling it with false. Its working now, thank you.

1 Like