USTRUCT constructor argument in Blueprint

GenerationLost
Tue, 12 Jan 2021 16:22:49 +0000
Editor Scripting

I’ve found nothing regarding my question, so I ask it here:

Is it possible to “Make Struct” within Blueprints and provide arguments to the struct’s constructors if there’s more than the default constructor? The “Make Struct” node never shows any input pins even though my USTRUCT has a constructor that takes an argument next to the empty default constructor.

FMyStruct(EMyEnum foo)
{
    //some stuff
}

FMyStruct() {}

I want to be able to call the first constructor within Blueprints.

1 post - 1 participant