Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/World.h |
Include |
#include "Engine/World.h" |
struct FWorldAsyncTraceState
This encapsulate World's async trace functionality. This contains two buffers of trace data buffer and alternates it for each tick.
You can use async trace using following APIs : AsyncLineTrace, AsyncSweep, AsyncOverlap When you use those APIs, it will be saved to AsyncTraceDataFWorldAsyncTraceState contains two buffers to rotate each frame as you might need the result in the next frame However, if you do not get the result by next frame, the result will be discarded. Use Delegate if you would like to get the result right away when available.
Name | Description | ||
---|---|---|---|
|
CurrentFrame |
Used as counter for Buffer swap for DataBuffer. Right now it's only 2, but it can change. |
|
|
AsyncTraceData[... |
DataBuffer |
Async Trace Data Buffer Array. For now we only saves 2 frames. |
Name | Description | |
---|---|---|
|
FWorldAsyncTraceState() |
Name | Description | ||
---|---|---|---|
|
AsyncTraceDa... |
GetBufferForCurrentFrame() |
Get the Buffer for Current Frame |
|
AsyncTraceDa... |
GetBufferForFrame ( |
Get the Buffer for input Frame |
|
AsyncTraceDa... |
GetBufferForPreviousFrame() |
Get the Buffer for Previous Frame |