Hi there,
A new question about a grid filled with dynamic components, it's quite popular these days

So I fill this grid with items, and suddenly I want to empty it and fill it with new items, and reset the items/panel position.
What I'm doing (after removing/adding components) is:
m_UIDraggablePanel.ResetPosition();
m_UIGrid.repositionNow = true;
Seems quite clean and simple but it does not work, I guess I have something wrong with the timing. My solution for now is to set another boolean "NeedReposition" to true, and in the update do
if (NeedReposition)
ScriptUIGrid.repositionNow = true;
This one works fine but is kinda inelegant, does someone know a better way to do that...?
Thanks!