Net.Like.Xue.Tokyo/Assets/Samples/YooAsset/2.1.1/Extension Sample/Scripts/Runtime/AssetOperationHandleExtensi...

16 lines
390 B
C#
Raw Normal View History

2024-11-16 15:45:30 +08:00
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;
}
}