x

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"

Can you make a custom drop down in the details panel for a BP using c++ or blueprint?

I'm making a configurable monster object where I want to populate a drop list with the monster list from a database. Currently the only way I have found is to make a enum and make this public. But this means ever time i add or remove the monster from my source I have to manually edit the enum. Are there custom drop downs we can use to populate with config data?

Product Version: Not Selected
Tags:
more ▼

asked Jun 28 '14 at 05:01 PM in C++ Programming

avatar image

Shoiko
638 57 55 67

avatar image dzeligman Jul 10 '14 at 10:31 PM

I have nothing to add besides I also desire this knowledge, maybe this bumps it to epic?

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

3 answers: sort voted first

in 4.9, you can expose FDataTableRowHandle and FDataTableCategoryHandle inside DataTable.h

just change their USTRUCT() to USTRUCT(BlueprintType), then you can use them as an exposed blueprint property, and it will give you a drop down list of all the row names. (the category handle will give you drop down lists of other columns)

alt text

more ▼

answered Sep 06 '15 at 04:17 PM

avatar image

ScottSpadea
9.6k 319 205 449

avatar image ScottSpadea Sep 06 '15 at 04:49 PM

most objects require a specific datatable, so being able to switch the datatable to some other data type is probably not a good idea. to prevent that, you can set the data table reference in the construction script, like this:

alt text

avatar image Shoiko Nov 15 '15 at 09:17 PM

when i try this The Row Name is just a Fname input did you change the type ot enum or something some how?

avatar image Shoiko Nov 16 '15 at 12:29 PM

ha got it took alot of looking around and playing with the structures but woot i have to write a easy guide on this!

avatar image Shoiko Sep 07 '15 at 12:06 AM

Awesome will try this most def!

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

Why not make a dynamic array? Then have the array loaded in to the list.

more ▼

answered Jun 28 '14 at 06:05 PM

avatar image

DJMidKnight
1.2k 50 24 50

avatar image Shoiko Jun 28 '14 at 06:17 PM

When I load an array and expose it tot he info panel I get this but what I need is a select-able drop list menu.

alt text

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

You can use details panel customization (more detailed), to load your database (is stored in DataTable ?) use StaticLoadObject for single table or FAssetRegistryModule to load DataTables from specific folder/package. Of course you can then propagate dropdown with your data, check for example BlueprintDetailsCustomization CustomizeDetails function. You only need to change SEditableTextBox to STextBlock.

more ▼

answered Jul 08 '15 at 09:14 AM

avatar image

Bidon
1 1

(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