/Engine/Source/Developer/ToolMenus/Public/ToolMenu.h
Returns array [Menu, Menu.SubMenuA, Menu.SubMenuB] for Menu.SubMenuB.SubMenuB
[TArray](API\Runtime\Core\Containers\TArray)< const [UToolMenu](API\Developer\ToolMenus\UToolMenu) * > GetSubMenuChain() const