![見出し画像](https://assets.st-note.com/production/uploads/images/146980020/rectangle_large_type_2_17dc4ebe9cf40a81bf231403759bf043.png?width=1200)
UnityにVRMを入れたら一生分のエラーがでた。
今回登場するエラーの皆さん
①Library\PackageCache\com.unity.visualscripting@1.9.4〇〇【ここに様々な謎言語が書かれてる】: error CS0234: The type or namespace name 'IonicZip' does not exist in the namespace 'Unity.VisualScripting' (are you missing an assembly reference?)これに類似するエラー1000以上
![](https://assets.st-note.com/img/1720712371565-RMTANy6BiT.png?width=1200)
出所不明のコロナウィルスみたいなやつ。え?コロナは出所がわかってるって?シーッ
②Assets\UniGLTF\Tests\UniGLTF\UniGLTFTests.cs(747,10): error CS0246: The type or namespace name 'Test' could not be found (are you missing a using directive or an assembly reference?)
これに類似するエラー283種
![](https://assets.st-note.com/img/1720712224036-cvN1rczbpF.png?width=1200)
③Assets\VRM\Runtime\FirstPerson\VRMFirstPersonCameraManager.cs(4,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
④Assets\VRM\Runtime\FirstPerson\VRMFirstPersonCameraManager.cs(31,20): error CS0246: The type or namespace name 'RawImage' could not be found (are you missing a using directive or an assembly reference?)
![](https://assets.st-note.com/img/1720712258370-Wd0xd0zQb7.png?width=1200)
それぞれのエラーの解決方法
①Library\PackageCache~~のエラーの解消法
➡プロジェクトのパッケージ設定のリセットで解決。ただしそののちに謎の警告が発生しました。
※深刻な警告※
この方法はUnityのあらゆるアセットとかなんとかがリセットされるので、制作中のプロジェクトで起こった場合は非推奨です(2敗)
![](https://assets.st-note.com/img/1720712863999-vXvBu57OEy.png?width=1200)
②Assets\UniGLTF\Tests\UniGLTF\~~のエラーの解消法
NuGetパッケージマネージャーを入れて解決。
➡Unityエディタ上で、Window -> Package Managerを開く。 +ボタンをクリックし、「Add package from git URL...」を選択。 com.unity.nuget.newtonsoft-json およびcom.unity.test-framework を追加。
![](https://assets.st-note.com/img/1720713118967-1oHNzeGw8Q.png?width=1200)
”なんとかかんとかURL”の選択をお忘れなく。導入するものも2種類あるからね!焦らずに。
これで解決します。
![](https://assets.st-note.com/img/1720713265694-FIS9Z9dyCB.png?width=1200)
③Assets\VRM\Runtime\FirstPerson\VRMFirstPersonCameraManager.cs(4,19): error CS0234および④Assets\VRM\Runtime\FirstPerson\VRMFirstPersonCameraManager.cs(31,20): error CS0246のエラーの解消法
Window -> Package Managerを開く。 Unity UI を追加。
![](https://assets.st-note.com/img/1720713466727-c1mrsjl5V6.png?width=1200)
![](https://assets.st-note.com/img/1720713693777-4NrCRSocI2.png)
左を選んでください
![](https://assets.st-note.com/img/1720713937875-0yeivqWWTd.png?width=1200)
おわりに
この作業が終わったらもうUnityは触りません。俺はUEと生きていく。
この記事が気に入ったらサポートをしてみませんか?