How to add a Button to the Toolbar using Python?

Hey, I know it’s been a year, any chance you’ve figured out how this would work for UE5? it’s not working for me with your method.

Also a sidenote, in the find_menu function,
obj = unreal.find_object(None,"/Engine/Transient.ToolMenus_0:ToolMenu_%s" % i)
now on UE5 is:
obj = unreal.find_object(None,"/Engine/Transient.ToolMenus_0:RegisteredMenu_%s" % i)

1 Like