Better handling of property mutability, and also, walk into structs.
This commit is contained in:
@@ -35,10 +35,10 @@ public:
|
||||
UObject* Obj = F.Walk(Object).Cast<UObject>();
|
||||
if (!Obj) return;
|
||||
|
||||
TArray<FWingProperty> Props = FWingProperty::GetDetails(Obj, CPF_Edit, true);
|
||||
TArray<FWingProperty> Props = FWingProperty::GetDetails(Obj, true);
|
||||
FWingProperty* P = WingUtils::FindOneWithExternalID(Property, Props, TEXT("Property"), WingOut::Stdout);
|
||||
if (!P) return;
|
||||
|
||||
|
||||
if (P->SetText(Value, WingOut::Stdout))
|
||||
WingOut::Stdout.Print(TEXT("OK\n"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user