LoginSignup
1
2

More than 5 years have passed since last update.

Unityでシーンファイルからエディタを開こうとした時にクラッシュして立ち上がらない時の対処法

Posted at

若干はまってしまったのでメモ

環境

OSX Yosemite
Unity4.6.8

症状

gitで新規で落としてきたUnityのプロジェクトを
*.unityから開こうとした際に、Unityがクラッシュしてエディタが立ち上がらない

原因

今回の場合はプレファブが壊れていたのが原因の模様
なんとかエディタを立ち上げてみると
「Automatic import for 'Assets/*.prefab' was disabled because the asset importer crashed on it last time.
You can use 'Assets -> Reimport' to enable automatic importing again.

というメッセージがコンソールに出力された

対応策

最初にまずなんとかUnityエディタが動作するように試してみる
自分の場合は、スクリプトファイルを全て削除し、わざとビルドエラーを出したら
立ち上がった。
5回ほど諦めずに繰り返し*.unityから開こうとした所、こちらでも立ち上がった。
壊れているprefabの数に依存するのかもしれない。
あとは上記のメッセージが表示されるので、対象のprefabをReimportすれば良い

クラッシュする原因は様々な要因が考えられるが、自分の場合はprefabでした。

以上

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2