Hello !
How could i do to pass arguments with Dynamic Delegates ?
I can’t find anything about how to do it, and if it is possible or not.
I’m using level streaming, and, when a level is loaded, i want to use it with some parameters passed with it.
I tried with a TScriptDelegate<FWeakObjectPtr>
, but i can only bind UFunction without any parameters or variables payload.
What i want to achieve would be something like that (passing Var1 & Var2) :
SpawnedLevel->OnLevelLoaded.AddDynamic(this, &ARoomBuilder::OnLevelLoadFunction, Var1, Var2);
I could achieve to something with queuing levels into an array but i dont think that’s good practice, it would be better to have a real reference to it.
Thanks for your help !