Files
YooAssetScene/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionClass/AssetHandleExtension.cs
T
何冠峰 7f566e5388 update extension sample
重新整理目录结构
2024-12-27 17:29:00 +08:00

16 lines
381 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using YooAsset;
public static class AssetHandleExtension
{
/// <summary>
/// 等待异步执行完毕
/// </summary>
public static AssetHandle WaitForAsyncOperationComplete(this AssetHandle thisHandle)
{
thisHandle.WaitForAsyncComplete();
return thisHandle;
}
}