UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ChaosDebugDrawSubsystem.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
8
9#include "ChaosDebugDrawSubsystem.generated.h"
10
11class UWorld;
13
14UCLASS(MinimalAPI)
16{
18
19public:
20
21 virtual bool ShouldCreateSubsystem(UObject* Outer) const override final;
22 virtual void PostInitialize() override final;
23 virtual void Deinitialize() override final;
24
25 static void Startup();
26 static void Shutdown();
27
28#if CHAOS_DEBUG_DRAW
29public:
30
31 const ChaosDD::Private::FChaosDDScenePtr& GetDebugDrawScene() const { return CDDScene; }
32
33protected:
34
35 void RenderScene(FChaosDDRenderer& Renderer, const ChaosDD::Private::FChaosDDScenePtr& Scene);
36 void RenderFrame(FChaosDDRenderer& Renderer, const ChaosDD::Private::FChaosDDFramePtr& Frame);
37 void OnWorldTickStart(ELevelTick TickType, float Dt);
38 void OnWorldTickEnd(ELevelTick TickType, float Dt);
39 void UpdateDrawRegion();
40 void RenderScene();
41 static void StaticOnWorldTickStart(UWorld* World, ELevelTick TickType, float Dt);
42 static void StaticOnWorldTickEnd(UWorld* World, ELevelTick TickType, float Dt);
43
44 ChaosDD::Private::FChaosDDScenePtr CDDScene;
45 ChaosDD::Private::FChaosDDTimelinePtr CDDWorldTimeline;
46 ChaosDD::Private::FChaosDDTimelineContext CDDWorldTimelineContext;
47
50#endif
51};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ELevelTick
Definition EngineBaseTypes.h:70
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition IDelegateInstance.h:14
Definition Renderer.Build.cs:6
Definition ChaosDebugDrawSubsystem.h:16
Definition Object.h:95
Definition WorldSubsystem.h:16
Definition World.h:918