docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method EnsureMounted

    EnsureMounted(string)

    Mounts the Content Directory at the given load path if it is not already mounted, and returns its handle. The directory remains mounted until UnmountAll() is called.

    Declaration
    public static ContentDirectoryHandle EnsureMounted(string rawLoadPath)
    Parameters
    Type Name Description
    string rawLoadPath

    The symbolic load path stored in the catalog entry data.

    Returns
    Type Description
    ContentDirectoryHandle

    A valid handle to the mounted Content Directory.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when the load path is null or empty.

    Exception

    Thrown when the Content Directory fails to mount.

    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)