Method GatherAllAssets
GatherAllAssets(List<AddressableAssetEntry>, bool, bool, bool, Func<AddressableAssetEntry, bool>)
Gathers all asset entries. Each explicit entry may contain multiple sub entries. For example, addressable folders create entries for each asset contained within.
Declaration
public void GatherAllAssets(List<AddressableAssetEntry> assets, bool includeSelf, bool recurseAll, bool includeSubObjects, Func<AddressableAssetEntry, bool> entryFilter = null)
Parameters
| Type | Name | Description |
|---|---|---|
| List<AddressableAssetEntry> | assets | The generated list of entries. For simple entries, this will contain just the entry itself if specified. |
| bool | includeSelf | Determines if the entry should be contained in the result list or just sub entries. |
| bool | recurseAll | Determines if full recursion should be done when gathering entries. |
| bool | includeSubObjects | Determines if sub objects such as sprites should be included. |
| Func<AddressableAssetEntry, bool> | entryFilter | Optional predicate to run against each entry, only returning those that pass. A null filter will return all entries |
GatherAllAssets(List<AddressableAssetEntry>, bool, bool, bool, Func<AddressableAssetEntry, bool>, AddressableAssetsBuildContext)
Gathers all asset entries, sharing the folder walk the build is already doing.
Declaration
public void GatherAllAssets(List<AddressableAssetEntry> assets, bool includeSelf, bool recurseAll, bool includeSubObjects, Func<AddressableAssetEntry, bool> entryFilter, AddressableAssetsBuildContext aaContext)
Parameters
| Type | Name | Description |
|---|---|---|
| List<AddressableAssetEntry> | assets | The generated list of entries. |
| bool | includeSelf | Determines if the entry should be contained in the result list or just sub entries. |
| bool | recurseAll | Determines if full recursion should be done when gathering entries. |
| bool | includeSubObjects | Determines if sub objects such as sprites should be included. |
| Func<AddressableAssetEntry, bool> | entryFilter | Optional predicate to run against each entry, only returning those that pass. |
| AddressableAssetsBuildContext | aaContext | Shares this build's folder walk. Pass null to walk folders fresh. |