docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetRootAsset

    GetRootAsset(ContentDirectoryHandle)

    Finds the IAddressableRootAsset embedded in a mounted Content Directory.

    Declaration
    public static IAddressableRootAsset GetRootAsset(ContentDirectoryHandle handle)
    Parameters
    Type Name Description
    ContentDirectoryHandle handle

    A valid Content Directory handle returned by EnsureMounted(string).

    Returns
    Type Description
    IAddressableRootAsset

    The root asset, or null if the handle is invalid or no root asset is present.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)