I’d like to be able to set the Table parameter’s default value to be whatever the assigned value of DataTableRef is. Is this possible using UFUNCTION specifiers?
(UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
UDataTable* DataTableRef;
// set Table default value as DataTableRef?
UFUNCTION(BlueprintCallable, meta = (DataTablePin = Table))
void TestFunc(UDataTable* Table, FName RowName);
I mainly just wanted to be able to set it whenever the node is created in the editor – not at runtime – this way you wouldn’t have to set the proper data table each time you create the node.
If its not possible though, I can find another way. Thanks for your response!
Yeah it’s confusing. “Runtime” is used in two different senses. It can mean (a) when the game is running (under a UGameInstance) but not when the editor is running, or (b) more generally, when a program is running which includes a game or an editor.
(a) would probably be better described as “in-game” or “during play” to disambiguate.
(b) is used to distinguish runtime from compiletime, as in when you are compiling the program (ie Build Project in Visual Studio).
(b) is the sense we use when talking about C++ language rules.