How can I get get blueprint variable value in c++?
I tried FindField(Obj->GetClass(), Name)
but it always returns null.
UBlueprint has TArray NewVariables
. There are description for all variables, but I have no idea how to get their values.
How can I get get blueprint variable value in c++?
I tried FindField(Obj->GetClass(), Name)
but it always returns null.
UBlueprint has TArray NewVariables
. There are description for all variables, but I have no idea how to get their values.
Hi, artemavrin
Check this post
Thank you, I tried that, but as I said FindField doesn’t find any blueprint variable. There are just variables created in c++.
Also I tried TFieldIterator
. Example from Michael Noland’s blog:
for (TFieldIterator<UProperty> PropIt(GetClass(), EFieldIteratorFlags::IncludeSuper); PropIt; ++PropIt)
{
UProperty* Property = *PropIt;
// Do something with the property
}
I wrote all variables names to the log, there is no blueprint created variables
OK, that code should be in AActor, it works) thx