LoginSignup
3
1

More than 5 years have passed since last update.

You are trying to replace or create a prefab from the instance 'hoge' that references a missing script. This is not allowed. Please change the script or remove it from the game object.のエラーが出た

Last updated at Posted at 2019-02-01

Unityのバージョンを上げたらこのようなエラーメッセージが発生してPrefabの更新ができなくなった。

You are trying to replace or create a prefab from the instance 'hoge' that references a missing script. This is not allowed. Please change the script or remove it from the game object.

The referenced script on this Behaviour is missing!

こういったエラーもあるそうです。

これはどうやらScriptが参照エラーになったオブジェクトのPrefab更新等がUnityのバージョンアップで、できなくなったっぽいです。

対処方法

http://wiki.unity3d.com/index.php?title=FindMissingScripts

ここのFindMissingScriptsをEditorにぶち込んで
Prefabの全オブジェクトを選択した上で、Window>FindMissingScriptsを選択してやるといいです。
Consoleに参照エラーが起きてるオブジェクトが表示されるので、そいつのコンポーネントを削除してやるといいです。

3
1
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
3
1