Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UE4 list all properties of a type
for (TFieldIterator<UProperty> prop_It(this->GetClass()); prop_It; ++prop_It)
{
if (UBoolProperty* BoolProperty = Cast<UBoolProperty>(*prop_It))
{
UE_LOG(LogTemp, Log, TEXT("%s: %s"), *BoolProperty->GetName(), BoolProperty->GetPropertyValue(this) ? TEXT("true") : TEXT("false"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment