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