Announcement

Collapse
No announcement yet.

Adding to Editor UI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding to Editor UI

    Hey guys,

    Does anyone know how to reference/access the Editor "HUD" and get a pointer to add to the UI functionality? Is it just like you were accessing the HUD in a game or is it a bit more complicated than that?

    #2
    Unfortunately the editor is a much more complicated UI involving many different entry points for ui to created and added. It is possible to extend parts of the editor though. If you can give some info about what you are trying to accomplish (e.g, where you want to put the ui, what you want to create) the we can give more help.

    Comment


      #3
      Well, the simplest thing might be just to make a new window and add any of my slate stuff there. I don't need it to inject directly into already existing sites. It's mostly a window to hold extra stuff for my benefit.

      Comment


        #4
        The simplest way to create a new window is at some point in your code you call

        TSharedRef<SWindow> MyWindow = SNew( SWindow )

        MyWindow->SetContent( Your Slate Content Here );

        FSlateApplication::Get().AddWindow( MyWindow ).

        What you probably want is to add a way via the editor to open a new window by adding it to the menu. There are many examples of doing this. A good basic example would be something like FUndoHistoryModule::StartupModule which adds a new entry in the window menu in the editor to open its own tab which can be docked anywhere.

        Comment


          #5
          Awesome, thank you very much for the help!

          Comment

          Working...
          X