Project
Beginner Gameplay Scripting
Conventions and Syntax
Tutorial
Beginner
15 Mins
Unity Technologies
Overview
You have completed 0% of this Tutorial.
1.
Conventions and Syntax
Summary
Learn about some basic conventions and syntax of writing code - dot operators, semi-colons, indentation and commenting.
Language
English
Recommended Unity Versions
4
1.
Conventions and Syntax
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!"); } } }

Woohoo! You nailed this tutorial.
Continue rocking your Beginner Gameplay Scripting project.
Next Step:
IF Statements
Tutorial
Beginner
5 Mins
Unity Technologies