"Pre-defined" FDataTableRowHandle or how to expose a dropdown of a datatable row names
Let's say I have a struct A, inheriting from
For a less abstract example, in my project I basically have two datatable, one with "enemies" and another with "enemy parties" in which I would like to be able to select directly from the enemy table. Knowing that the enemy datatable is already accessible globally through a singleton class.
asked Jul 18 '17 at 03:05 PM in C++ Programming
Took me some digging but I figured out the solution to this. You can achieve this effect by creating a Customization Layout for your struct (IPropertyTYpeCustomization) and then registering it via FPropertyEditorModule::RegisterCustomPropertyTypeLayout.
In my case, I loaded the datatable asset in my customization layout class, bypassing the need to have it as a uproperty in my struct.
The doc pages linked below will give you some more info on what to do, but I recommend looking at DataTableCustomization.h for an example on this particular problem.
There's already a built in property editor for
answered Oct 23 '18 at 07:58 PM
Also would like to know the answer to this. Have tried extending FDataTableRowHandle and initializing the DataTable in the constructor, which works. However, in doing this, "RowName" no longer becomes a drop down and is simply and FName field.
answered Aug 19 '17 at 03:16 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here