FNetSimCueDispatcher::Invoke

Invoke - this is how to invoke a cue from simulation code.

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkPredictionCues.h

Include

#include "NetworkPredictionCues.h"

Syntax

template<typename T, typename... ArgsType>
void Invoke
(
    ArgsType &&... Args
)

Remarks

Invoke - this is how to invoke a cue from simulation code. This will construct the CueType T emplace in the saved cue record.

Best way to call: Invoke(a, b, c); // a, b, c are constructor parameters

This works too, but will cause a move (if possible) or copy FMyCue MyCue(a,b,c); Invoke(MyCue);

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