MCPcopy Create free account
hub / github.com/NotYetGames/DlgSystem / OnInitObject

Method OnInitObject

Source/DlgSystem/Private/IO/DlgConfigParser.cpp:648–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648void* FDlgConfigParser::OnInitObject(void* ValuePtr, const UClass* ChildClass, UObject* OuterInit)
649{
650 if (ChildClass != nullptr)
651 {
652 UObject** Value = (UObject**)ValuePtr;
653 *Value = nullptr;
654 *Value = CreateNewUObject(ChildClass, OuterInit);
655 return *Value;
656 }
657 UE_LOG(LogDlgConfigParser, Warning, TEXT("OnInitValue called without class!"));
658 return nullptr;
659}
660
661/** gets the UClass from an UObject or from an array of UObjects */
662const UClass* FDlgConfigParser::SmartGetPropertyClass(FProperty* Property, const FString& TypeName)

Callers

nothing calls this directly

Calls 1

CreateNewUObjectFunction · 0.85

Tested by

no test coverage detected