ContentFileUnloadHandle.WaitForCompletion

Declaration

public bool WaitForCompletion(int timeoutMs);

Parameters

timeoutMs The maximum time in milliseconds this function will wait before returning. Pass 0 to block indefinitely until completion.

Returns

bool Returns false if the timeout was reached before ContentFile completed loading.

Description

Blocks on the main thread until the unload operation completes. This function can be slow and so should be used carefully to avoid frame rate stuttering.


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