Determine if a Widget was created by the Editor (by opening the blueprint) or by the user

Hi,

I’m building a plugin for the Unreal Engine editor and I need to determine how a widget is created.
I’m storing the created widgets in an array, but just by opening the blueprint, Unreal Engine creates more instances of the Widget.

I tried the flag approach, but the widget is created with the same flags (RF_Transactional and RF_NeedInitialization) when it is created by me or by the editor (by clicking the blueprint).

Please, if anyone has a good approach for solving this, let me know.

Stay safe :slight_smile: