Unity:エラー解決報告:MissingComponentException: There is no 'Rigidbody' attached to...
以下のようなエラーについての解決法報告です。
エラー内容
コンソールのエラー文面
MissingComponentException: There is no 'Rigidbody' attached to the "(何らかのヒエラルキー上のオブジェクト名)" game object, but a script is trying to access it. You probably need to add a Rigidbody to the game object "(何らかのヒエラルキー上のオブジェクト名)". Or your script needs to check if the component is attached before using it. (以下略)
解決策
書いてあるとおりなのですが、必要なコンポーネントが足りないので追加すると直ります。この例では、スクリプトにRigidbodyを扱うコードが書いてあるのに、ゲームオブジェクトにRigidbodyコンポーネントが付与されていないのです。Rigidbodyを追加するとエラーは直りました。