docs.unity3d.com
    Show / Hide Table of Contents

    Method GatherAllAssets

    GatherAllAssets(List<AddressableAssetEntry>, Boolean, Boolean, Boolean, Func<AddressableAssetEntry, Boolean>)

    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 virtual void GatherAllAssets(List<AddressableAssetEntry> results, bool includeSelf, bool recurseAll, bool includeSubObjects, Func<AddressableAssetEntry, bool> entryFilter = null)
    Parameters
    Type Name Description
    List<AddressableAssetEntry> results

    The generated list of entries. For simple entries, this will contain just the entry itself if specified.

    Boolean includeSelf

    Determines if the entry should be contained in the result list or just sub entries.

    Boolean recurseAll

    Determines if full recursion should be done when gathering entries.

    Boolean includeSubObjects

    Determines if sub objects such as sprites should be included.

    Func<AddressableAssetEntry, Boolean> entryFilter

    Optional predicate to run against each entry, only returning those that pass. A null filter will return all entries

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023