Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to create a menu bar using FMenuBarBuilder?

I am trying to create a menu bar using FMenuBarBuilder.

I only could find the following piece of codes at https://docs.unrealengine.com/en-us/Programming/Slate/Widgets, but it is incorrect.

FUICommandList CommandList; FMenuBarBuilder MenuBarBuilder(CommandList); { MenuBarBuilder.AddPullDownMenu(TEXT("Menu 1"), TEXT("Opens Menu 1"), FNewMenuDelegate::CreateRaw(&FMenus::FillMenu1Entries));

 MenuBarBuilder.AddPullDownMenu(TEXT("Menu 2"), TEXT("Opens Menu 2"), FNewMenuDelegate::CreateRaw(&FMenus::FillMenu2Entries));

} MenuBarBuilder.MakeWidget();

I'd appreciate it if anyone'd provide me a piece of sample codes creating a menu bar via FMenuBarBuilder.

Thank you in advance.

Product Version: UE 4.21
more ▼

asked Jan 07 '19 at 09:30 PM in C++ Programming

avatar image


(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It's not incorrect simply those example shows how to declare widgets but it does not show where oyu can use them as there many places. Most common way is use FMenuBarBuilder is menu extenders, which allows to add menu entries to existing sets, here some exmple i find:


here alos video with over view of extending editor, in mention extenders and how to find them:


more ▼

answered Jan 07 '19 at 09:53 PM

avatar image

37.2k 936 172 1116

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question