Navigation
API > API/Runtime > API/Runtime/Engine
Contains all Async Trace Result for one frame.
We use double buffer for trace data pool. FrameNumber % 2 = is going to be the one collecting NEW data Check FWorldAsyncTraceState to see how this is used. For now it is only double buffer, but it can be more.
| Name | AsyncTraceData |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/WorldCollision.h |
| Include Path | #include "WorldCollision.h" |
Syntax
struct AsyncTraceData : public FNoncopyable
Inheritance Hierarchy
- FNoncopyable → AsyncTraceData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
AsyncTraceData() |
WorldCollision.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~AsyncTraceData() |
WorldCollision.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AsyncTraceCompletionEvent | FGraphEventArray | Thread completion event for batch | WorldCollision.h | |
| bAsyncAllowed | bool | If Execution is all done, set this to be true | WorldCollision.h | |
| bAsyncTasksCompleted | bool | WorldCollision.h | ||
| NumQueuedOverlapData | int32 | Datum entries in OverlapData are persistent for efficiency. | WorldCollision.h | |
| NumQueuedTraceData | int32 | Datum entries in TraceData are persistent for efficiency. | WorldCollision.h | |
| OverlapData | TArray< TUniquePtr< TTraceThreadData< FOverlapDatum > > > | WorldCollision.h | ||
| TraceData | TArray< TUniquePtr< TTraceThreadData< FTraceDatum > > > | Data Buffer for each trace type - one for Trace/Sweep and one for Overlap | WorldCollision.h | |
| TransactionalOverlapData | FTransactionalAsyncTraceBuffer< FOverlapDatum > | WorldCollision.h | ||
| TransactionalTraceData | FTransactionalAsyncTraceBuffer< FTraceDatum > | Data for Transactional async queries. | WorldCollision.h |