Last active
November 1, 2018 21:43
-
-
Save daltondotgd/4d991da374765da786445f5e734f5480 to your computer and use it in GitHub Desktop.
UE4 list all properties of a type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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