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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Slate C++ Widgets, interaction with UMG.

I have currently fairly simple Slate UI, for Inventory, Action Bars etc. Nothing fancy, just basic functionality.

My question is, how Widgets created in C++, will interaction UI created in Slate ? Will my custom widgets be able to translate into UMG supported widgets, with little effort (like wrapping them into UObject),

Are there any particular things I should look out when creating my custom widgets ? Especially the ones that needs more interaction (drag&drop, moving around, etc).

I don't need UI right now (beyond simple testing), but if I can save some effort later, by creating working widgets right now, I'm all in!

Product Version: Not Selected
more ▼

asked Jul 24 '14 at 10:02 AM in C++ Programming

avatar image

1.6k 105 97 184

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

1 answer: sort voted first


Good question - yeah, it's basically as easy as wrapping them in a UObject called UWidget. There's a bunch of samples in the UMG runtime module for every widget. I dunno if there's anything specifically you need to lookout for, the plan is to make most (if not all) of the stuff capable in a slate widget possible in a UMG widget. The two exceptions to that are probably templating (still working on figuring out ListView/Combobox), and named slots, we don't really expose a way to scan for them and return them to the designer. It only understands 1 slot and N-slot widgets right now.

As you start getting into it, if something doesn't seem possible let me know. There's a lot of surface area to cover, so I want to make sure we don't purposely prevent things that are common in Slate.

Cheers, Nick

more ▼

answered Jul 24 '14 at 01:51 PM

avatar image

Nick Darnell ♦♦ STAFF
6k 77 37 151

avatar image iniside Jul 24 '14 at 03:57 PM

Thanks. Good to hear that, and good to hear you working on figuring out ListView, as it tends to happens, actually most of my widgets use STileView.

I found it is most convenient way of handling, automatic grid0-like data presentation, and binding collection of items from arrays, without trying to outsmart my self.

(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