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 Build
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);
}
}