UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DebugDrawComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
6#include "DebugDrawComponent.generated.h"
7
48UCLASS(Abstract, HideCategories = (Activation, AssetUserData, Collision, Cooking, HLOD, Lighting, LOD, Mobile, Navigation, Physics, RayTracing, Rendering, Tags, TextureStreaming), MinimalAPI)
49class UDebugDrawComponent : public UPrimitiveComponent
50{
52
53protected:
54 /* Method overriden and marked as final since derived class should override `CreateDebugSceneProxy` */
55 ENGINE_API virtual FPrimitiveSceneProxy* CreateSceneProxy() override final;
56
57 /* Method that derived class should override to create the scene proxy and customize a custom delegate helper (if any) */
58 virtual FDebugRenderSceneProxy* CreateDebugSceneProxy() { return nullptr; }
59
60 ENGINE_API virtual void CreateRenderState_Concurrent(FRegisterComponentContext* Context) override;
61 ENGINE_API virtual void DestroyRenderState_Concurrent() override;
62
64 virtual FDebugDrawDelegateHelper& GetDebugDrawDelegateHelper() { return DebugDrawDelegateHelper; }
65
67};
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 DebugRenderSceneProxy.h:41
Definition PrimitiveSceneProxy.h:296
Definition ActorComponent.h:47
Definition DebugDrawComponent.h:50
FDebugDrawDelegateHelper DebugDrawDelegateHelper
Definition DebugDrawComponent.h:66
virtual FDebugDrawDelegateHelper & GetDebugDrawDelegateHelper()
Definition DebugDrawComponent.h:64
virtual FDebugRenderSceneProxy * CreateDebugSceneProxy()
Definition DebugDrawComponent.h:58
Definition SceneManagement.h:73
Definition DebugRenderSceneProxy.h:434