Hi all,
I am trying to spawn this Blueprint called Cubit Impact FX Spawner in C++. In Editor, this is how it is done.
In c++, I managed to spawn it through but I am unable to set variables, Hit Result and Impact Speed. I need to set those variables the moment SpawnActor() runs, but I cannot figure a way to do so.
Impact Speed, is a float variable, so I tried using FindField() and SetFloatingPointPropertyValue() to set its value, but the new value is being set after BeginPlay() is called for this Blueprint class.
FActorSpawnParameters seems to be what I need to set up to pass Hit Result and Impact Speed value in upon creation, but I’m not too sure how to set up the Template parameter.
Anyone has an idea on how to pass the variables in, or even how to set up the Template parameter?