Class SubAssetsHandle
Assembly: YooAsset.dll
Declaration
public sealed class SubAssetsHandle : HandleBase, IEnumerator, IDisposable
Properties
SubAssetObjects
子资源对象集合
Declaration
public IReadOnlyList<Object> SubAssetObjects { get; }
Methods
WaitForAsyncComplete()
等待异步执行完毕
Declaration
public void WaitForAsyncComplete()
GetSubAssetObject<TObject>(string)
获取子资源对象
Declaration
public TObject GetSubAssetObject<TObject>(string assetName) where TObject : Object
Returns
<TObject>
Parameters
Type | Name | Description |
---|---|---|
System.String | assetName | 子资源对象名称 |
Type Parameters
Name | Description |
---|---|
TObject | 子资源对象类型 |
GetSubAssetObjects<TObject>()
获取所有的子资源对象集合
Declaration
public TObject[] GetSubAssetObjects<TObject>() where TObject : Object
Returns
<TObject>[]
Type Parameters
Name | Description |
---|---|
TObject | 子资源对象类型 |
Events
Completed
完成委托
Declaration
public event Action<SubAssetsHandle> Completed
Event Type
System.Action<YooAsset.SubAssetsHandle>
Implements
System.Collections.IEnumerator
System.IDisposable