Hello World

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
m (Text replace - "<javascript>" to "<syntaxhighlight lang="javascript">")
m (Text replace - "</javascript>" to "</syntaxhighlight>")
Line 9: Line 9:
 
==== UnityScript - HelloWorld.js ====
 
==== UnityScript - HelloWorld.js ====
  
<syntaxhighlight lang="javascript">print("Hello World");</javascript>
+
<syntaxhighlight lang="javascript">print("Hello World");</syntaxhighlight>
  
 
==== C# - CSHelloWorld.cs ====
 
==== C# - CSHelloWorld.cs ====

Revision as of 20:52, 10 January 2012

Contents

Description

Example of traditional "Hello World" with Unity3D in three support languages.

The output is sent to the console window in Unity3D Editor.

Code

UnityScript - HelloWorld.js

print("Hello World");

C# - CSHelloWorld.cs

using UnityEngine;
 
class CSHelloWorld : MonoBehaviour
{
	void Start()
	{
		print("Hello World");
	}
}

Boo - BooHelloWorld.boo

<boo>import UnityEngine

class BooHelloWorld (MonoBehaviour): def Start (): print("Hello World")</boo>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox