Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
WaitForTask.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4namespace CesiumForUnity
5{
10 public class WaitForTask : CustomYieldInstruction
11 {
12 private IAsyncResult _task;
13
18 public WaitForTask(IAsyncResult task)
19 {
20 this._task = task;
21 }
22
23 public override bool keepWaiting => !this._task.IsCompleted;
24 }
25}
A YieldInstruction that can be yielded from a coroutine in order to wait until a given task completes...
WaitForTask(IAsyncResult task)
Initializes a new instance.