//記錄原本等待就緒TimeOut時間
int waitForReadyTimeOut = Playback.PlaybackSettings.WaitForReadyTimeout;
//等待就緒TimeOut時間設為0
Playback.PlaybackSettings.WaitForReadyTimeout = 0;
//關閉等待就緒
Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.Disabled;
try
{
...本來會Hang住不動的程式碼...
}
finally
{
//最後記得恢復原本設定
Playback.PlaybackSettings.WaitForReadyTimeout = waitForReadyTimeOut;
Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.UIThreadOnly;
}