UIExtension Widget Reference

Using the UIExtensionSubsystem how do I check and get a reference to a widget in a slot so I can pass to variables etc. I can register/unregister with a handle but is there an option to search by tag or get the widget reference?

Hi @Iceruin,

When you register a widget with the UIExtensionSubsystem , it returns a handle or some form of identifier.

What if you create a map in your system that associates tags with widget references or handles then implement a search for a given tag?

TMap<FName, FUIExtensionHandle> WidgetHandleMap;

FUIExtensionHandle GetWidgetHandleByTag(FName Tag)
{
    FUIExtensionHandle* Handle = WidgetHandleMap.Find(Tag);
    return Handle ? *Handle : FUIExtensionHandle(); 
}

I’ll give that a try, just wondered if they forgot ( or me missing it) to add a search function for them once the widget was activated by tag