UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ClassDefaultObjectTest.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_TESTS
6
7#include "UObject/Object.h"
8
9#include "ClassDefaultObjectTest.generated.h"
10
11UCLASS()
13{
15
16public:
18
19 // PostInitProperties is called before RF_NeedInitialization is removed
20 // so its a good place to modify a non-atomic value to see if there is
21 // any race during default object construction.
22 virtual void PostInitProperties()
23 {
24 Super::PostInitProperties();
25
27 }
28};
29
30#endif
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Object.h:95