0
0
Unityframework~30 mins

First Unity project (Hello World scene) - Mini Project: Build & Apply

Choose your learning style9 modes available
First Unity project (Hello World scene)
📖 Scenario: You are creating your first Unity project to display a simple "Hello World" message in a 3D scene. This is like putting up a sign in a park that says "Hello World" for everyone to see.
🎯 Goal: Build a Unity scene that shows a 3D text object with the exact message "Hello World" visible in the game view.
📋 What You'll Learn
Create a new Unity scene with a 3D Text object
Set the text content to "Hello World"
Position the text so it is visible in the main camera view
Add a simple script to control the text if needed
💡 Why This Matters
🌍 Real World
Creating simple 3D text displays is common in games and interactive apps to show messages, instructions, or titles.
💼 Career
Understanding how to set up scenes, add objects, and write scripts is foundational for Unity developers building interactive experiences.
Progress0 / 4 steps
1
Create a new Unity scene and add a 3D Text object
In your Unity project, create a new scene. Then add a 3D Text object named helloText to the scene hierarchy.
Unity
Need a hint?

Use the Unity Editor menus to create a new scene and add a TextMeshPro 3D text object. Rename it exactly to helloText.

2
Set the text content to "Hello World"
Select the helloText object and set its text content property to the exact string "Hello World".
Unity
Need a hint?

Look in the Inspector panel for the helloText object. Find the Text field and type exactly "Hello World".

3
Position the text so it is visible in the main camera view
Set the helloText object's position to (0, 0, 5) so it appears in front of the main camera at (0, 0, 0).
Unity
Need a hint?

In the Transform component of helloText, set the X and Y to 0 and Z to 5 so the text is in front of the camera.

4
Add a simple script to rotate the text slowly
Create a new C# script named HelloWorldRotator and attach it to helloText. In the script, write code to rotate the text around the Y-axis by 20 degrees per second.
Unity
Need a hint?

Create a new C# script file named HelloWorldRotator.cs. Use the Update() method to rotate the object smoothly every frame.