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
4
#include "
Components/PrimitiveComponent.h
"
5
#include "
DebugRenderSceneProxy.h
"
6
#include "DebugDrawComponent.generated.h"
7
48
UCLASS
(Abstract,
HideCategories
= (
Activation
, AssetUserData,
Collision
, Cooking,
HLOD
, Lighting, LOD,
Mobile
,
Navigation
,
Physics
,
RayTracing
,
Rendering
,
Tags
, TextureStreaming), MinimalAPI)
49
class
UDebugDrawComponent
:
public
UPrimitiveComponent
50
{
51
GENERATED_BODY
()
52
53
protected
:
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
66
FDebugDrawDelegateHelper
DebugDrawDelegateHelper
;
67
};
EARSpatialMeshUsageFlags::Collision
@ Collision
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
DebugRenderSceneProxy.h
EFocusCause::Navigation
@ Navigation
EInterchangeFactoryAssetType::Physics
@ Physics
EMemoryTraceInit::Tags
@ Tags
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
PrimitiveComponent.h
ERayTracingGeometryInitializerType::Rendering
@ Rendering
EShadingPath::Mobile
@ Mobile
EVulkanSyncPointType::Context
@ Context
FDebugRenderSceneProxy
Definition
DebugRenderSceneProxy.h:41
FPrimitiveSceneProxy
Definition
PrimitiveSceneProxy.h:296
FRegisterComponentContext
Definition
ActorComponent.h:47
UDebugDrawComponent
Definition
DebugDrawComponent.h:50
UDebugDrawComponent::DebugDrawDelegateHelper
FDebugDrawDelegateHelper DebugDrawDelegateHelper
Definition
DebugDrawComponent.h:66
UDebugDrawComponent::GetDebugDrawDelegateHelper
virtual FDebugDrawDelegateHelper & GetDebugDrawDelegateHelper()
Definition
DebugDrawComponent.h:64
UDebugDrawComponent::CreateDebugSceneProxy
virtual FDebugRenderSceneProxy * CreateDebugSceneProxy()
Definition
DebugDrawComponent.h:58
RayTracing
Definition
SceneManagement.h:73
FDebugDrawDelegateHelper
Definition
DebugRenderSceneProxy.h:434
Engine
Source
Runtime
Engine
Classes
Debug
DebugDrawComponent.h
Generated by
1.9.8