Navigation
API > API/Runtime > API/Runtime/Chaos
Initializes the FChaosDDContext for a task thread. Assumes that the task is kicked off from a thread that has an active debug draw context, which should be passed into this context. Any debug draws from the task will go to the same frame as the parent context.
The active context is accessed via FChaosDDContext::GetWriter() (and not this object).
NOTE: This is only intended to be used for tasks which will be awaited before the end of the frame (truly asynchronous tasks would need their own timeline, or just set up a context that writes to the global frame)
| Name | FChaosDDTaskContext |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/ChaosDebugDraw/ChaosDDContext.h |
| Include Path | #include "ChaosDebugDraw/ChaosDDContext.h" |
Syntax
class FChaosDDTaskContext
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInContext | bool | ChaosDebugDraw/ChaosDDContext.h | ||
| PreviousFrame | FChaosDDFramePtr | ChaosDebugDraw/ChaosDDContext.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BeginThread
(
const FChaosDDTaskParentContext& InParentDDContext |
ChaosDebugDraw/ChaosDDContext.h | ||
void EndThread() |
ChaosDebugDraw/ChaosDDContext.h |