// Copyright Epic Games, Inc. All Rights Reserved. #include "MyAutoRTFMTestObject.h" UMyAutoRTFMTestObject::FConstructorCallback* UMyAutoRTFMTestObject::ConstructorCallback = nullptr; UMyAutoRTFMTestObject::UMyAutoRTFMTestObject(const FObjectInitializer& ObjectInitializer /* = FObjectInitializer::Get() */) : Value(42) { UObject* const Obj = ObjectInitializer.GetObj(); UObject* const Outer = Obj->GetOuter(); if (Outer->IsA()) { UMyAutoRTFMTestObject* const OuterAsType = static_cast(Outer); OuterAsType->Value += 13; } if (ConstructorCallback) { ConstructorCallback(ObjectInitializer, *this); } }