28template<
typename ElementType>
116 if (IsDebugDrawingEnabled())
121 AddCommand(FLatentDrawCommand::DrawPoint(
Position,
Color, bPersistentLines, LifeTime, DepthPriority, Thickness));
128 if (IsDebugDrawingEnabled())
133 AddCommand(FLatentDrawCommand::DrawLine(LineStart, LineEnd,
Color, bPersistentLines, LifeTime, DepthPriority, Thickness));
140 if (IsDebugDrawingEnabled())
145 AddCommand(FLatentDrawCommand::DrawDirectionalArrow(LineStart, LineEnd, ArrowSize,
Color, bPersistentLines, LifeTime, DepthPriority, Thickness));
152 if (IsDebugDrawingEnabled())
173 if (IsDebugDrawingEnabled())
179 AddCommand(FLatentDrawCommand::DrawDebugSphere(
Center, Radius,
Segments,
Color, bPersistentLines, LifeTime, DepthPriority, Thickness));
186 if (IsDebugDrawingEnabled())
191 AddCommand(FLatentDrawCommand::DrawDebugBox(
Center, Extent,
Rotation,
Color, bPersistentLines, LifeTime, DepthPriority, Thickness));
198 if (IsDebugDrawingEnabled())
201 int Cost =
Text.Len();
209 void DrawDebugCircle(
const FVector&
Center, FReal Radius,
int32 Segments,
const FColor&
Color,
bool bPersistentLines,
float LifeTime,
uint8 DepthPriority,
float Thickness,
const FVector& YAxis,
const FVector& ZAxis,
bool bDrawAxis)
211 if (IsDebugDrawingEnabled())
216 AddCommand(FLatentDrawCommand::DrawDebugCircle(
Center, Radius,
Segments,
Color, bPersistentLines, LifeTime, DepthPriority, Thickness, YAxis, ZAxis,
bDrawAxis));
223 if (IsDebugDrawingEnabled())
228 AddCommand(FLatentDrawCommand::DrawDebugCapsule(
Center, HalfHeight, Radius,
Rotation,
Color, bPersistentLines, LifeTime, DepthPriority, Thickness));
281 static bool IsDebugDrawingEnabled()
284 return GetInstance().bEnableDebugDrawing && (GetInstance().NumConsumers > 0);
301 ChaosDD::Private::FChaosDDFrameWriter
DDWriter = ChaosDD::Private::FChaosDDContext::Get().GetWriter();
302 return DDWriter.GetDrawRegion().Center;
312 ChaosDD::Private::FChaosDDFrameWriter
DDWriter = ChaosDD::Private::FChaosDDContext::Get().GetWriter();
323 ChaosDD::Private::FChaosDDFrameWriter
DDWriter = ChaosDD::Private::FChaosDDContext::Get().GetWriter();
324 return DDWriter.IsInDrawRegion(Pos);
334 ChaosDD::Private::FChaosDDFrameWriter
DDWriter = ChaosDD::Private::FChaosDDContext::Get().GetWriter();
345 ChaosDD::Private::FChaosDDFrameWriter
DDWriter = ChaosDD::Private::FChaosDDContext::Get().GetWriter();
346 return DDWriter.IsInDrawRegion(
FBox3d(Bounds.Min(), Bounds.Max()));
355 ChaosDD::Private::FChaosDDFrameWriter
DDWriter = ChaosDD::Private::FChaosDDContext::Get().GetWriter();
383 ChaosDD::Private::FChaosDDContext::GetWriter().EnqueueLatentCommand(Command);
#define NULL
Definition oodle2base.h:134
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::FPlatformRecursiveMutex FCriticalSection
Definition CriticalSection.h:53
ENGINE_API void DrawDebugCoordinateSystem(const UWorld *InWorld, FVector const &AxisLoc, FRotator const &AxisRot, float Scale, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
ENGINE_API void DrawDebugBox(const UWorld *InWorld, FVector const &Center, FVector const &Extent, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
ENGINE_API void DrawDebugCapsule(const UWorld *InWorld, FVector const &Center, float HalfHeight, float Radius, const FQuat &Rotation, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0)
ENGINE_API void DrawDebugCircle(const UWorld *InWorld, const FMatrix &TransformMatrix, double Radius, int32 Segments, const FColor &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f, bool bDrawAxis=true)
ENGINE_API void DrawDebugString(const UWorld *InWorld, FVector const &TextLocation, const FString &Text, class AActor *TestBaseActor=NULL, FColor const &TextColor=FColor::White, float Duration=-1.000000, bool bDrawShadow=false, float FontScale=1.f)
ENGINE_API void DrawDebugLine(const UWorld *InWorld, FVector const &LineStart, FVector const &LineEnd, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
ENGINE_API void DrawDebugPoint(const UWorld *InWorld, FVector const &Position, float Size, FColor const &PointColor, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0)
ENGINE_API void DrawDebugDirectionalArrow(const UWorld *InWorld, FVector const &LineStart, FVector const &LineEnd, float ArrowSize, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
ENGINE_API void DrawDebugSphere(const UWorld *InWorld, FVector const &Center, float Radius, int32 Segments, FColor const &Color, bool bPersistentLines=false, float LifeTime=-1.f, uint8 DepthPriority=0, float Thickness=0.f)
UE::Math::TSphere< double > FSphere3d
Definition MathFwd.h:67
UE::Math::TBox< double > FBox3d
Definition MathFwd.h:68
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
FRWLock Lock
Definition UnversionedPropertySerialization.cpp:921
Definition ScopeLock.h:141
FGameThreadAudioCommandQueue CommandQueue
Definition AudioThread.cpp:222
Definition SkeletalMeshComponent.h:307
TVector< FReal, 3 > FVec3
Definition Core.h:17
void SetEnabled(bool bInEnabled)
Definition ShaderPrint.cpp:317
@ Element
Definition Visu.h:18
double SizeSquared(const T &Value)
Definition SplineMath.h:172
@ false
Definition radaudio_common.h:23
static CORE_API const FColor Blue
Definition Color.h:754
static CORE_API const FColor Red
Definition Color.h:752
static CORE_API const FColor Green
Definition Color.h:753