API reference

FOvrRequestLatentAction Class

FOvrRequestLatentAction is a latent action class for blueprint nodes that wait for OVR Platform UOvrPlatformSubsystem responses. It handles most requests and has two function objects, RequestGenerator and ResponseProcessor, which are used to generate the request and process the response, respectively. The class also has several member variables to track the status of the request and response processing.

Constructors

FOvrRequestLatentAction ( LatentInfo , OutExecs , ErrorMsg , RG , RP )
Signature
FOvrRequestLatentAction::FOvrRequestLatentAction(const FLatentActionInfo &LatentInfo, EOvrRequestOutputPins &OutExecs, FString &ErrorMsg, OvrPlatformRequestGenerator &&RG, OvrPlatformResponseProcessor &&RP)
Parameters
LatentInfo: const FLatentActionInfo &
ErrorMsg: FString &

Fields

bRequestSuccessful : bool
This variable is a boolean that indicates whether the request to the OVR Subsystem was successful.
Signature
bool FOvrRequestLatentAction::bRequestSuccessful
bResponseProcessed : bool
This variable is a boolean that indicates whether the response from the Oculus VR Platform (OVR) Subsystem has been processed.
Signature
bool FOvrRequestLatentAction::bResponseProcessed
bThenPinExecuted : bool
This variable is a boolean that indicates whether the "then" pin of the latent action has been executed.
Signature
bool FOvrRequestLatentAction::bThenPinExecuted
ErrorMsg : FString &
A reference to a string, which represents the error message for the request.
Signature
FString& FOvrRequestLatentAction::ErrorMsg
OutExecs : EOvrRequestOutputPins &
A reference to an EOvrRequestOutputPins enum, which represents the output pins for the request.
Signature
EOvrRequestOutputPins& FOvrRequestLatentAction::OutExecs

Member Functions

UpdateOperation ( Response )
It's responsible for updating the state of the latent action while it is waiting for a response from the OVR Platform.
Signature
virtual void FOvrRequestLatentAction::UpdateOperation(FLatentResponse &Response) override
Parameters
Response: FLatentResponse &
Returns
void