コガネブログ

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

2020-04-02から1日間の記事一覧

【Unity】Addressable Asset System のデフォルトの Profile の各パス

概要 項目 内容 BuildTarget [UnityEditor.EditorUserBuildSettings.activeBuildTarget] LocalBuildPath [UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget] LocalLocadPath {UnityEngine.AddressableAssets.Addressables.RuntimePath}/…

【Unity】Addressable Asset System におけるプラットフォーム情報を取得する方法

概要 PlatformMappingService.GetPlatform を使用すると AddressablesPlatform という列挙型でプラットフォーム情報を取得できる Unity エディタ上であれば、EditorUserBuildSettings.activeBuildTarget に紐づく AddressablesPlatform の値が返ってくる そ…

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

概要 BuildPath "Library/com.unity.addressables/StreamingAssetsCopy/" + StreamingAssetsSubFolder + "/" + PlatformMappingService.GetPlatform() PlayerBuildDataPath Application.streamingAssetsPath + "/" + StreamingAssetsSubFolder + "/" + Platf…

【Unity】Addressable Asset System で Bundle Naming を Use Hash of Filename にした時に生成されるハッシュを取得する方法

概要 [MenuItem( "Tools/Hoge" )] private static void Hoge() { var filename = "【アセットバンドルのファイル名】"; var hash = HashingMethods.Calculate( filename ); Debug.Log( hash ); } HashingMethods.Calculate を使用する アセットバンドルのフ…

【Unity】Addressable Asset System で Bundle Naming を Filename にした時にどのようにパッキングされるか

概要 グループ内のシーンファイル 【グループ名の lowercase】_scenes_all.bundle という名前のアセットバンドルに含まれる グループ内のシーンファイル以外のアセット 【グループ名の lowercase】_assets_all.bundle という名前のアセットバンドルに含まれ…

【Unity】Addressable Asset System の DownloadDependenciesAsync の引数に渡せる key

渡せるもの アドレス ラベル 英数字の羅列のアセットバンドル名 渡せないもの アセットバンドル名 Status に Succeeded が返ってくるが、何もダウンロードされない

【Unity】Addressable Asset System でカタログをダウンロードする時に使用される Provider

概要 ContentCatalogProvider が JsonAssetProvider を使用している ContentCatalogProvider.cs 64行目 JsonAssetProvider は TextDataProvider を継承している TextDataProvider にダウンロード処理が記載されている

【おすすめスライド】「Android向けUnity製ゲーム最適化のためのCI/CDと連携した自動プロファイリングシステム」

スライド