docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property StreamingAssetsSubFolder

    StreamingAssetsSubFolder

    The subfolder used by the Addressables system for its built data.

    Declaration
    public static string StreamingAssetsSubFolder { get; }
    Property Value
    Type Description
    string
    Remarks

    The Addressables system currently builds inside the library in a folder named 'aa'. Each platform that is built will be built inside a subfolder matching the platform name. This subfolder is also the base for loading streaming data at runtime. The Editor build location is BuildPath and player is PlayerBuildDataPath.

    Examples

    The example demonstrates a utility function that looks inside the Streaming Assets subfolder and gets a list of all the subfolders. This is returned as a list of all platforms that have been built on the current machine.

    class StreamingAssetBuilds
    {
        public static string[] GetBuiltPlatforms()
        {
            // list all platform folders in the addressable asset build directory:
            var addressableBuildPath = Addressables.LibraryPath + Addressables.StreamingAssetsSubFolder;
            return Directory.GetDirectories(addressableBuildPath);
        }
    }
    In This Article
    Back to top
    Copyright © 2025 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)