前提・実現したいこと
ここに質問の内容を詳しく書いてください。
(例)PHP(CakePHP)で●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
ドットインストールの新unity講座#14にて速度の調整し、実行しようとしたところ、エラーメッセージがでました。最初にscriptを制作したときにデフォルト名だったので後から変更したのがいけなかったのでしょうか?
Consoleの一つ目のエラー The referenced script (Unknown) on this Behaviour is missing! Consoleの二つ目のエラー The referenced script on this Behaviour (Game Object 'Paddle') is missing! sceneの中のcube(paddle)のscriptの欄のエラー The associated script can not be loaded. Please fix any compile errors and assign a valid script.
該当のソースコード
C#
1using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4 5public class PaddleScript : MonoBehaviour 6{ 7 //private float speed; 8 public float speed; 9 10 // Start is called before the first frame update 11 void Start() 12 { 13 // speed = 5f; 14 } 15 16 // Update is called once per frame 17 void Update() 18 { 19 transform.position += new Vector3(Input.GetAxis("Horizontal")*Time.deltaTime * speed, 0f, 0f); 20 //Debug.Log(transform.position.x); 21 } 22}
試したこと
ソフトの再起動
補足情報(FW/ツールのバージョンなど)
Unity 2019.1.0f2 (64-bit)
visual studio 2017
windows 8.1
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。