コガネブログ

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

【Unity】アセットバンドルが格納されているフォルダ名を返す関数

ソースコード

使い方

var platformFolderForAssetBundles = ExampleClass.CurrentPlatformFolderForAssetBundles;

Unity エディタ上では
EditorUserBuildSettings.activeBuildTargetを使用して、
ランタイムではApplication.platformを使用して、
アセットバンドルが格納されているフォルダの名前を返します

参考サイト様

http://files.unity3d.com/vincent/assetbundle-demo/users_assetbundle-demo.zip

関連記事