How can I have a Row Name drop down from a data table as a variable input on a blueprint function?

You can do it in C++ by using the DataTablePin metadata specifier.
Here’s what your function’s header would need to look like:

	UFUNCTION(BlueprintCallable, meta=(DataTablePin="ItemsTable"))
	void AddItem(UDataTable* ItemsTable, FName RowName);

Since it is BlueprintCallable, you’ll be able to use that function in your BPs.

If you want to implement the function’s internal logic in BP rather than C++, you can just make your BP class inherit the C++ class and override the function in the BP.

3 Likes