うにてぃブログ

主にUnityとC#に関する記事を書いていきます

Error

【エラー】 UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Location found for Key=GUID

UnityEngine.AddressableAssets.AssetReference を利用している際に UnityEditor 上では動作したがビルドして確認してみると以下のエラーでロードできなかった UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.Addressa…

【Unity】Broken text PPtr in file(***.controller). Local file identifier (-7404026014276284922) doesn't exist!【Error】

アセットバンドルのビルド時に、以下のエラーが発生しビルドすることができなくなりました Broken text PPtr in file(Hoge.controller). Local file identifier (-7404026014276284922) doesn't exist! 実際に内部を見てみると、対象のアセット参照をもった …

【Unity】Insecure connection not allowed【Error】

Unity 2022以降 Addressable でリモートのバンドルをロードする際にデフォルトの設定だと リモートからカタログやバンドルをロードする際に以下のエラーが発生する Non-secure network connections disabled in Player Settings Insecure connection not all…

【Unity】Android 実機での NotSupportedException

Mecab を Android で試そうと思い導入し、ビルドして実機確認を行うと NotSupportedException: System.Condiguration.Applicationsettingsbase のエラーが出て利用することができなかった このエラーについて調べてみると 呼び出されたメソッドがサポートさ…

【Unity】Cannot perform upm operation: Unable to add package [http://github.com/hoge/hoge.git]:

Mac から Unity の PackageManager で github のリポジトリを追加してみたところ エラーが発生してしまい、リポジトリを追加できませんでした Cannot perform upm operation: Unable to add package [http://github.com/yayorozu/UnityCustomInspector.git]:…

【Unity】Script 'Packages/*.cs' will not be compiled because it exists outside the Assets folder and does not to belong to any assembly definition file.

自作ライブラリを PackageManager で利用できるように対応したところ下記 Waring が出ていました Script 'Packages/*.cs' will not be compiled because it exists outside the Assets folder and does not to belong to any assembly definition file. Warn…

【Unity】Assertion failed on expression: 'gForceReimports->empty()'

※Unity2019.4.6f1 private void OnValidate() { var path = UnityEditor.AssetDatabase.GetAssetPath(asset); var importer = UnityEditor.AssetImporter.GetAtPath(path) as UnityEditor.TextureImporter; if (!importer.isReadable) { importer.isReadable…

【Unity】UnityException: LoadAssetAtPath is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject

UnityException: LoadAssetAtPath is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject こちらのエラーは シリアライズされたクラスのコンストラクタで LoadAssetAtPath を呼び出せないとのこ…