Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlayerConnection.BlockUntilRecvMsg

public bool BlockUntilRecvMsg(Guid messageId, int timeout);

Parameters

messageId The type ID of the message that is sent to the Editor.
timeout The time-out specified in milliseconds.

Returns

bool Returns true when the message is received and false if the call timed out.

Description

Blocks the calling thread until either a message with the specified messageId is received or the specified time-out elapses.

Did you find this page useful? Please give it a rating: