Property StreamingAssetsSubFolder
StreamingAssetsSubFolder
The subfolder used by the Addressables system for its built data.
선언
public static string StreamingAssetsSubFolder { get; }
프로퍼티 값
타입 | 설명 |
---|---|
string |
참고
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.
예
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);
}
}