Skip to main content
Version: 2.2.x

Class SubAssetsOperationHandle

Assembly: YooAsset.dll
View Source
Declaration
public sealed class SubAssetsOperationHandle : OperationHandleBase, IEnumerator, IDisposable

Properties

AllAssetObjects

子资源对象集合

View Source
Declaration
public Object[] AllAssetObjects { get; }

Methods

WaitForAsyncComplete()

等待异步执行完毕

View Source
Declaration
public void WaitForAsyncComplete()

Release()

释放资源句柄

View Source
Declaration
public void Release()

Dispose()

释放资源句柄

View Source
Declaration
public void Dispose()

GetSubAssetObject<TObject>(string)

获取子资源对象

View Source
Declaration
public TObject GetSubAssetObject<TObject>(string assetName) where TObject : Object
Returns

<TObject>

Parameters
TypeNameDescription
System.StringassetName子资源对象名称
Type Parameters
NameDescription
TObject子资源对象类型

GetSubAssetObjects<TObject>()

获取所有的子资源对象集合

View Source
Declaration
public TObject[] GetSubAssetObjects<TObject>() where TObject : Object
Returns

<TObject>[]

Type Parameters
NameDescription
TObject子资源对象类型

Events

Completed

完成委托

View Source
Declaration
public event Action<SubAssetsOperationHandle> Completed
Event Type

System.Action<YooAsset.SubAssetsOperationHandle>

Implements

  • System.Collections.IEnumerator
  • System.IDisposable