質問をすることでしか得られない、回答やアドバイスがある。

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

新規登録して質問してみよう
ただいま回答率
85.50%
Unity

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

Q&A

1回答

11919閲覧

All compiler errors have to be fixed before you can enter playmode! のエラー

退会済みユーザー

退会済みユーザー

総合スコア0

Unity

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

0グッド

0クリップ

投稿2016/09/26 08:13

All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification()
とエラーが出ました。
調べてみると、全角とかビルドのエラーらしいのですが結局なんのエラーかわかりません。

Unity

1using UnityEngine; 2using System.Collections; 3using UnityEngine.UI; 4 5 6public class GameDirector : MonoBehaviour { 7 8 GameDirector hpGage; 9 10 // Use this for initialization 11 void Start () { 12 this.hpGage = GameDirector.Find ("hpGage"); 13 } 14 15 public void DecreaseHp(){ 16 this.hpGage.GetComponent<Image> ().fillAmount -= 0.1f; 17} 18}
using UnityEngine; using System.Collections; public class PlayerController : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { if(Input.GetKeyDown(KeyCode.LeftArrow)){ transform.Translate (-3, 0, 0); } if(Input.GetKeyDown(KeyCode.RightArrow)){ transform.Translate (3, 0, 0); } } }
using UnityEngine; using System.Collections; public class ArrowController : MonoBehaviour { GameObject player; // Use this for initialization void Start () { this.player = GameObject.Find ("player"); } // Update is called once per frame void Update () { transform.Translate (0, -0.1f, 0); if(transform.position.y < -5.0f){ Destroy (gameObject); } Vector2 p1 = transform.position; Vector2 p2 = this.player.transform.position; Vector2 dir = p1 - p2 ; float d = dir.magnitude; float r1 = 0.5f; float r2 = 1.0f; if(d< r1 + r2){ Destroy(gameObject); GameObject director = GameObject.Find ("GameDirector"); director.GetComponent<GameDirector> ().DecreaseHp (); } } }
using UnityEngine; using System.Collections; public class AllowGenerator : MonoBehaviour { public GameObject arrowPrefab; float span = 1.0f; float delta = 0; // Use this for initialization // Update is called once per frame void Update () { this.delta += Time.deltaTime; if(this.delta > this.span){ this.delta = 0; GameObject go = Instantiate (arrowPrefab) as GameObject; int px = Random.Range (-6, 7); go.transform.position = new Vector3 (px, 7, 0); } } }

と4つのファイルに記述しました。
なんのエラーなのでしょうか?

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

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

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

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

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

guest

回答1

0

そのエラーメッセージはエラーが出たよってメッセージで特に意味はありません。
真のエラーメッセージは多分その一つ上の行とかに出てるはず。

投稿2016/09/26 09:38

編集2016/09/26 09:41
ishi9

総合スコア1294

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問