
コンベンションとシンタックス
Tutorial
Beginner
+0XP
5 mins
(24)
Unity Technologies

ドット演算子、セミコロン、インデント、コメントなど、コードを書く上での基本的な規則や構文について学びます。
本チュートリアルは Beginner Scripting プロジェクトに含まれています。
前のチュートリアルは:Variables and Functions
次のチュートリアルは:If Statements
Languages available:
1. コンベンションとシンタックス
using UnityEngine;
using System.Collections;
public class BasicSyntax : MonoBehaviour
{
void Start ()
{
Debug.Log(transform.position.x);
if(transform.position.y <= 5f)
{
Debug.Log ("I'm about to hit the ground!");
}
}
}