質問するログイン新規登録
Unity

Unityは、Unity Technologiesが開発・販売している、IDEを内蔵するゲームエンジンです。主にC#を用いたプログラミングでコンテンツの開発が可能です。

Q&A

解決済

2回答

6357閲覧

UnityEditor.SceneView:ShowCompileErrorNotification()

whomean

総合スコア9

Unity

Unityは、Unity Technologiesが開発・販売している、IDEを内蔵するゲームエンジンです。主にC#を用いたプログラミングでコンテンツの開発が可能です。

0グッド

0クリップ

投稿2020/02/25 10:26

0

0

Unity 初心者(初めて)です。

UnityEditor.SceneView:ShowCompileErrorNotification()
というエラーがでます。

正常に動いたものに下記を追加しましたが・・・何かおかしいのですか?

private float speed;

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答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

whomean

総合スコア9

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

whomean

2020/02/25 11:43

お騒がせして済みませんでした。 Speed 設定の位置がまずかったです( ノД`)シクシク…
guest

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

whomean

総合スコア9

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.30%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問