32 template<
typename PropType>
33 PropType& GetProperty(
const FName& PropName)
41 UE_LOG(LogTemp, Warning, TEXT(
"Cannot get property %s from object %s!"),
42 *PropName.ToString(), _getUObject() ? *_getUObject()->GetName() : TEXT(
"(nullptr)"));
45 static PropType Empty;
49 FText GetStringText(UObject* Outer,
const FName& PropName,
const FText* BackupText =
nullptr)
51 FText& Key = GetProperty<FText>(PropName);
52 return ArticyHelpers::LocalizeString(Outer, Key,
true, BackupText);