Question about UFunction and Invoke

Hey community :slight_smile:

I would like to call a UFonction with parameters and get his result that I got from (I got some other code to select the function that I want to call by calling UFunction::GetFName()):



for (TFieldIterator<UFunction> PropIt(GetClass()); PropIt; ++PropIt)
		{
			UFunction* Function= *PropIt;
...


For example I would like to call SetActorTransform(FTransform newTransform) and GetActorTransform() with this mechanism.

So I try to use UFonction::Invoke (don’t know if I should use this or not), but I got stuck on his parameter when need “FFrame & Stack” and “void *const Z_Param__Result”.

After making that I would like to do the same thing with:



for (TFieldIterator<UProperty> PropIt(GetClass()); PropIt; ++PropIt)
		{
			UProperty* Property = *PropIt;
...


to modify property of my class.

I explain why I would like to this, I would like to update/save class with JSON generate by server side to save and my webserver side to update object with http request.

Any ideas ?