update extension sample

This commit is contained in:
何冠峰
2024-07-05 15:10:34 +08:00
parent 75511397d6
commit 86ef93caa3
34 changed files with 1 additions and 9 deletions
@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using YooAsset;
public static class AssetOperationHandleExtension
{
/// <summary>
/// 等待异步执行完毕
/// </summary>
public static AssetHandle WaitForAsyncOperationComplete(this AssetHandle thisHandle)
{
thisHandle.WaitForAsyncComplete();
return thisHandle;
}
}