コガネブログ

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

2022-10-19から1日間の記事一覧

【Unity】The operation couldn't be completed. Unable to locate a Java Runtime.

概要 Gradle failed to fetch dependencies. Failed to run 'XXXX/UnityProject/Temp/PlayServicesResolverGradle/gradlew --no-daemon -b "XXXX/UnityProject/Temp/PlayServicesResolverGradle/PlayServicesResolver.scripts.download_artifacts.gradle" "-…

【Unity】FirebaseCppApp-9_6_0.bundle が 100 MB を超えており GitHub リポジトリに Push できない場合

概要 remote: error: See http://git.io/iEPt8g for more information. remote: error: File UnityProject/Assets/Firebase/Plugins/x86_64/FirebaseCppApp-9_6_0.bundle is 134.36 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: …

【Unity】Firebase を使っているプロジェクトの iOS ビルドで .xcworkspace ではなく .xcodeproj を生成する方法

概要 Unity メニューの「Assets > External Dependency Manager > iOS Resolver > Settings」の 「Cocoapods Integration」を「Xcode Project~」にすると iOS ビルドで .xcworkspace ではなく .xcodeproj が生成されるようになる

【Unity】Execution failed for task ':launcher:processReleaseResources'.

概要 CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2022.1.11f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.1.11f1\Editor\Data\Playback…

【Unity】Android で署名なしでビルドする時に使用されるデバッグ用の keystore の保存場所

概要 OS 場所 Mac /Users/【ユーザー名】/.android/debug.keystore Windows C:\Users\【ユーザー名】\.android\debug.keystore 参考サイト様 The unsigned debug keystore is located by default at ~/.android/debug.keystore on MacOS and %USERPROFILE%.a…

【Unity】iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.

概要 iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project. After the failure, "pod repo update" was executed and failed. "pod install" was then attempted aga…

【Unity】Android 13 で通知許可ダイアログを開く方法

Mobile Notifications を使う方法 Mobile Notifications 2.1.0 を使えば簡単に実装できる Mobile Notifications 2.1.0 を使用して Android 13 で通知許可ダイアログを開く方法は上記のページの 「Request permission to post notifications」に記載されてい…

【Unity】Android 13 で通知許可ダイアログを開く時に無限ループが発生してしまう場合

概要 Mobile Notifications 2.1.0 を使用して Android 13 で通知許可ダイアログを開く時に 無限ループが発生してしまう場合、 「Project Settings > Player > Target API Level」を「API level 33」にしてから ビルドし直すと通知許可ダイアログが正常に開け…

【Unity】Notifications are not allowed for this application

はじめに Mobile Notifications を使用して iOS で通知許可ダイアログを表示しようとしたところ Notifications are not allowed for this application Requesting notification authorization failed with: Error Domain=UNErrorDomain Code=1 "Notification…

【Unity】iOS ビルド時に Xcode プロジェクトの Product Name を変更するエディタ拡張

ソースコード #if UNITY_IOS using UnityEditor; using UnityEditor.Callbacks; using UnityEditor.iOS.Xcode; internal static class Example { [PostProcessBuild] private static void OnPostProcessBuild ( BuildTarget buildTarget, string pathToBuilt…

【Unity】Inspector のコンポーネントのヘッダーにボタンを追加するエディタ拡張

リポジトリ 使用例 Remove Component Move Up / Move Down Copy Component / Paste Component Values