FScopedPredictionWindow

A structure for allowing scoped prediction windows.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayPrediction.h

Include

#include "GameplayPrediction.h"

Syntax

struct FScopedPredictionWindow

Remarks

A structure for allowing scoped prediction windows.

Variables

Name Description

Public variable

FPredictionKey

 

ScopedPredictionKey

Constructors

Name Description

Public function

FScopedPredictionWindow

(
    UAbilitySystemComponent* Abili...,
    bool CanGenerateNewKey
)

To be called in the callsite where the predictive code will take place.

Public function

FScopedPredictionWindow

(
    UAbilitySystemComponent* Abili...,
    FPredictionKey InPredictionKey,
    bool InSetReplicatedPredictionKey
)

To be called on server when a new prediction key is received from the client (In an RPC).

Destructors

Name Description

Public function

~FScopedPredictionWindow()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss