Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CancelRequest(string, string)

Checks whether there is a pending request for a specific event and, if there is, cancels it. See EventService.Request for more details on Request.
Read time 1 minuteLast updated 13 days ago

Definition

public static bool CancelRequest(string eventType, string message = null)

Parameters

eventType

The event to cancel.

message

The error message sent to the pending request.

Returns

Type

Description

boolReturns true if a pending request was found and cancelled false otherwise.