Navigation
API > API/Runtime > API/Runtime/Engine
| Name | FGraphTraversalCounter |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Animation/AnimTypes.h |
| Include Path | #include "Animation/AnimTypes.h" |
Syntax
struct FGraphTraversalCounter
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGraphTraversalCounter() |
Animation/AnimTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Counter | int16 | Number of counter increments since last reset. | Animation/AnimTypes.h | |
| LastSyncronizedFrame | uint64 | Number of the last external frame where we updated the counter (total global frame count) | Animation/AnimTypes.h | |
| SkipFrames | int16 | Number of external frames that URO is currently scheduled to skip. | Animation/AnimTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int16 Get() |
Animation/AnimTypes.h | ||
int16 GetMaxSkippedFrames() |
Gets the number of expected frames to be skipped by URO | Animation/AnimTypes.h | |
bool HasEverBeenUpdated() |
Animation/AnimTypes.h | ||
void Increment() |
Increases the internal counter, and refreshes the current global frame counter | Animation/AnimTypes.h | |
bool IsSynchronized_All
(
const FGraphTraversalCounter& InOtherCounter |
Check that both the internal counter and global frame are both in sync between this counter and another | Animation/AnimTypes.h | |
bool IsSynchronized_Counter
(
const FGraphTraversalCounter& InOtherCounter |
Check whether the internal counter is synchronized between this and another counter | Animation/AnimTypes.h | |
bool IsSynchronized_Frame
(
const FGraphTraversalCounter& InOtherCounter |
Check whether this counter and another were synchronized on the same global frame | Animation/AnimTypes.h | |
bool IsSynchronizedWith
(
const FGraphTraversalCounter& InMasterCounter |
Animation/AnimTypes.h | ||
void Reset() |
Clear the internal counters and frame skip | Animation/AnimTypes.h | |
void SetMaxSkippedFrames
(
int16 InMaxSkippedFrames |
Sets the number of expected frames to be skipped by URO | Animation/AnimTypes.h | |
void SynchronizeWith
(
const FGraphTraversalCounter& InMasterCounter |
Sync this counter with another counter | Animation/AnimTypes.h | |
bool WasSynchronizedCounter
(
const FGraphTraversalCounter& InOtherCounter |
Check if this counter is either synchronized with another or is one update behind | Animation/AnimTypes.h | |
bool WasSynchronizedInTheLastFrame
(
const FGraphTraversalCounter& InMasterCounter |
Animation/AnimTypes.h | ||
bool WasSynchronizedLastFrame
(
const FGraphTraversalCounter& InOtherCounter |
Check whether this counter and another were either synchronized this global frame or were synced one frame interval previously. | Animation/AnimTypes.h |