com.alicizax.unity.tuyoogam.../Samples~/Extension Sample/Runtime/ExtensionClass/AssetHandleExtension.cs

16 lines
381 B
C#
Raw Normal View History

2025-01-09 11:31:04 +08:00
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;
}
}