WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Tests/Editor/DocExampleCode/ScriptReference/UsingStreamingAssetsSubFolder.cs
2025-01-07 02:06:59 +01:00

21 lines
625 B
C#

namespace AddressableAssets.DocExampleCode
{
using System.IO;
using UnityEngine.AddressableAssets;
internal class UsingStreamingAssetsSubFolder
{
#region SAMPLE
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);
}
}
#endregion
}
}