Skip to content

Instantly share code, notes, and snippets.

View NickTsaizer's full-sized avatar
⚠️
0xDEADDEAD

Nick Tsaizer NickTsaizer

⚠️
0xDEADDEAD
View GitHub Profile
UFUNCTION(BlueprintCallable, Category = "Valhalla|Server", CustomThunk, meta = (CustomStructureParam = "structToFill"))
static void JsonToStruct(const UProperty* structToFill, const FString& json);
DECLARE_FUNCTION(execJsonToStruct) {
Stack.MostRecentPropertyAddress = nullptr;
Stack.MostRecentProperty = nullptr;
Stack.StepCompiledIn<UStructProperty>(NULL);
void* structPtr = Stack.MostRecentPropertyAddress;
auto structProperty = Cast<UStructProperty>(Stack.MostRecentProperty);