コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Addressable Asset System で BuildPath や RuntimePath などを参照するとどのような文字列を取得できるか

概要

BuildPath

"Library/com.unity.addressables/StreamingAssetsCopy/" + 
    StreamingAssetsSubFolder + "/" + 
    PlatformMappingService.GetPlatform()

PlayerBuildDataPath

Application.streamingAssetsPath + "/" + 
    StreamingAssetsSubFolder + "/" + 
    PlatformMappingService.GetPlatform()"

RuntimePath

#if UNITY_EDITOR
    return BuildPath;
#else
    return PlayerBuildDataPath;
#endif

StreamingAssetsSubFolder

"aa"

kAddressablesRuntimeDataPath

"AddressablesRuntimeDataPath"