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?
asked Jun 28 '14 at 05:01 PM in C++ Programming
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)
answered Sep 06 '15 at 04:17 PM
Why not make a dynamic array? Then have the array loaded in to the list.
answered Jun 28 '14 at 06:05 PM
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.
answered Jul 08 '15 at 09:14 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here