Example #1
0
 public static IEnumerator WaitDone <T>(this AsyncOperationHandleDisposable <T> handle)
 {
     if (handle.IsValid())
     {
         yield return(new WaitWhile(() => !handle.IsDone));
     }
 }
Example #2
0
 public void Release <T>(AsyncOperationHandleDisposable <T> operationHandle)
 {
     Debug.Log($"AddressableService Release {operationHandle.DebugName}");
     if (operationHandle.IsValid())
     {
         Addressables.Release(operationHandle);
     }
 }