UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AutoRTFMTestObject.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "AutoRTFMTestObject.generated.h"
6
7UCLASS()
9{
11
12public:
14 {
15 UObject* const Obj = ObjectInitializer.GetObj();
16 UObject* const Outer = Obj->GetOuter();
17
18 if (Outer->IsA<UAutoRTFMTestObject>())
19 {
21 OuterAsType->Value += 13;
22 }
23 }
24
25 int Value;
26
27 bool bHitOnComponentPhysicsStateChanged = false;
28
29 UFUNCTION()
30 void OnComponentPhysicsStateChanged(UPrimitiveComponent* ChangedComponent, EComponentPhysicsStateChange StateChange)
31 {
32 bHitOnComponentPhysicsStateChanged = true;
33 }
34};
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
EComponentPhysicsStateChange
Definition PrimitiveComponent.h:220
Definition UObjectGlobals.h:1292
static COREUOBJECT_API FObjectInitializer & Get()
Definition UObjectGlobals.cpp:5001
Definition AutoRTFMTestObject.h:9
UAutoRTFMTestObject(const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get())
Definition AutoRTFMTestObject.h:13
int Value
Definition AutoRTFMTestObject.h:25
FORCEINLINE UObject * GetOuter() const
Definition UObjectBase.h:223
Definition Object.h:95