Unity 初心者(初めて)です。
UnityEditor.SceneView:ShowCompileErrorNotification()
というエラーがでます。
正常に動いたものに下記を追加しましたが・・・何かおかしいのですか?
private float speed;
気になる質問をクリップする
クリップした質問は、後からいつでもMYページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。

回答2件
0
自己解決
All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification()
とありました。
全部のコードは下記です。
解決ではないですが、こちらの方が正確な質問です。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PaddleScript : MonoBehaviour
private float speed;
{
// Start is called before the first frame update
void Start()
{
speed = 5f;
}
// Update is called once per frame void Update() { transform.position += new Vector3(Input.GetAxis("Horizontal") * Time.deltaTime * speed,0f,0f); Debug.Log(transform.position.x); }
}
投稿2020/02/25 11:41
総合スコア9
0
All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification()
とありました。
全部のコードは下記です。
解決ではないですが、こちらの方が正確な質問です。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PaddleScript : MonoBehaviour
private float speed;
{
// Start is called before the first frame update
void Start()
{
speed = 5f;
}
// Update is called once per frame void Update() { transform.position += new Vector3(Input.GetAxis("Horizontal") * Time.deltaTime * speed,0f,0f); Debug.Log(transform.position.x); }
}
投稿2020/02/25 10:32
総合スコア9
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
あなたの回答
tips
太字
斜体
打ち消し線
見出し
引用テキストの挿入
コードの挿入
リンクの挿入
リストの挿入
番号リストの挿入
表の挿入
水平線の挿入
プレビュー
質問の解決につながる回答をしましょう。 サンプルコードなど、より具体的な説明があると質問者の理解の助けになります。 また、読む側のことを考えた、分かりやすい文章を心がけましょう。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/02/25 11:43