コガネブログ

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

2022-11-17から1日間の記事一覧

【Unity】Play Asset Delivery を導入して Android ビルドしたら DllNotFoundException が発生

概要 DllNotFoundException: /data/app/~~EpCtMMU6o4jMa8tCi-kNiQ==/XXXX-BkCHnxel99lOtmD1A37Utg==/split_config.armeabi_v7a.apk!/lib/armeabi-v7a/libmono-native.so assembly:<unknown assembly> type:<unknown type> member:(null) at (wrapper managed-to-native) Interop+Sys.LChflags</unknown></unknown>…

【Unity】「Google/Build and Run」で呼び出される関数

概要 BuildAndRunner.BuildAndRun();

【Unity】環境変数に ANDROID_HOME を設定するコード

概要 Environment.SetEnvironmentVariable ( variable: "ANDROID_HOME", value: AndroidExternalToolsSettings.sdkRootPath, target: EnvironmentVariableTarget.Process ); var oldPath = Environment.GetEnvironmentVariable ( variable: "PATH", target: …

【Unity】Play Asset Delivery 1.8.1 のパッケージを導入して Android ビルドしたらアプリ起動時に強制終了するようになった

概要 Throwing new exception 'No interface method getPackStates(Ljava/util/List;)Lcom/google/android/play/core/tasks/Task; in class Lcom/google/android/play/core/assetpacks/AssetPackManager; or its super classes (declaration of 'com.google.…

【Unity】Unity 用の Google パッケージを .tgz でダウンロードできるページ

リンク

【Unity】com.android.tools.build.bundletool.model.exceptions.CommandExecutionException: Installation of the app failed.

概要 Play Asset Delivery 用の Unity プラグインを追加して Bundletool.BuildBundle で Android ビルドを実行したら Installation failed with the following output: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 The APKs have been extracted in…

【Unity】DeploymentOperationFailedException: Installation failed. See the Console for details.

概要 Play Asset Delivery 用の Unity プラグインを追加して Bundletool.BuildBundle で Android ビルドを実行したら DeploymentOperationFailedException: Installation failed. See the Console for details. UnityEditor.Android.AndroidDeploymentTarget…

【Unity】BuildPipeline.BuildPlayer で iOS ビルドする時に EditorUserBuildSettings.symlinkSources が反映されない場合

概要 EditorUserBuildSettings.symlinkSources = true; var buildReport = BuildPipeline.BuildPlayer( buildPlayerOptions ); 上記のようなコードで iOS ビルドした際に Symlink Sources が有効にならない現象に遭遇した buildPlayerOptions.options |= Bui…

【Unity】配列やリストの None な要素をすべて削除できるエディタ拡張

リポジトリ 使用例