Hello World
From Unify Community Wiki
(Difference between revisions)
(Created Hello World example for UnityScript, C# and Boo.) |
m (Text replace - "<csharp>" to "<syntaxhighlight lang="csharp">") |
||
Line 13: | Line 13: | ||
==== C# - CSHelloWorld.cs ==== | ==== C# - CSHelloWorld.cs ==== | ||
− | <csharp>using UnityEngine; | + | <syntaxhighlight lang="csharp">using UnityEngine; |
class CSHelloWorld : MonoBehaviour | class CSHelloWorld : MonoBehaviour |
Revision as of 20:43, 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
<javascript>print("Hello World");</javascript>
C# - CSHelloWorld.cs
using UnityEngine; class CSHelloWorld : MonoBehaviour { void Start() { print("Hello World"); } }</csharp> ==== Boo - BooHelloWorld.boo ==== <boo>import UnityEngine class BooHelloWorld (MonoBehaviour): def Start (): print("Hello World")</boo>