SlideShare a Scribd company logo
This tutorial is an exercise in which you can apply
your understanding of GameObjects and
transforms to build a structure out of 3D primitives.
In this tutorial, you will:
â—Ź Add primitives to an empty Scene.
â—Ź Create an empty GameObject as a parent for
other GameObjects.
â—Ź Duplicate GameObjects.
â—Ź Create parent-child relationships between
GameObjects using the Hierarchy window.
â—Ź Navigate around the Scene in the 3D space.
â—Ź Transform the primitives to a given position,
rotation, and scale.
1.Overview
This tutorial is an exercise in which you will build an
architectural GameObject made up of multiple primitives.
This exercise will give you a firm grasp of how to create
and manipulate GameObjects, and it will give you practice
navigating around a Scene.
Here is the structure you will build.
As you build this structure, you might want to change your
view of the Scene to make sure GameObjects are aligned.
For a review, see Navigating the scene.
2.Create an empty GameObject
An empty GameObject is a
placeholder object that can be
created in the Hierarchy. It
does not have a visible
representation in the Scene,
and it can act as a container for
other GameObjects (among
other things to be explained
later).
1. Right-click in the Hierarchy
and select Create Empty.
2. Rename this GameObject to
Monument in the Inspector.
3. Select this new GameObject in
the Scene view. In the Inspector,
reset the position by selecting the
three dots on the right and then
selecting Reset Position. This sets
the position of the center of the
GameObject to 0,0,0, aligning it to
the center of your Scene.
3.Create the steps
1. In the Hierarchy, right-click the Monument
GameObject and select 3D Object > Cube to
create a new cube as a child of Monument.
2. Rename this new GameObject to Floor.
Unity - Create a structure with primitives
3. Right-click on the Floor
GameObject and select
Duplicate. (Shortcut: select
Floor and press Ctrl-D.)
Duplicate Floor six more
times so that you have the
original Floor and seven
duplicates, for a total of
eight floors that are children
of Monument.
3.Create the steps
4.Transform the steps
In these tasks, you will change the Transform Component values
of each of the Floor objects to create the stair-step effect.
1. Select the first Floor child object and change the Transform
Component values in the Inspector as shown below.
4.Transform the steps
2. Do the same for the rest of the Floor objects
using the values indicated below.
Values for Floor (1) GameObject
Values for Floor (2) GameObject
Values for Floor (3) GameObject
4.Transform the steps
By now you should have
something similar to this:
4.Transform the steps
Values for Floor (4) GameObject
Values for Floor (5) GameObject
Values for Floor (6) GameObject
Values for Floor (7) GameObject
You should now have the steps of the monument.
5.Create the walls
1. Create another Cube
primitive as a child of the
Monument GameObject and
rename it to Wall.
2. Change the values in
the Inspector as shown
below.
The wall is now rotated so that it is diagonal across the Floor.
3. Duplicate the wall three
times and change the
Transform Component values
as shown below.
Wall (1) GameObject
Wall (3) GameObject
Wall (2) GameObject
You will now have 4 walls at 45 degrees.
6.Create the roof
1. Create a new
empty
GameObject as a
child of the
Monument
GameObject and
name it Platform.
2. Drag all the floor objects
into the Platform GameObject.
This creates what is called a
nested GameObject, in which
objects are nested at multiple
levels as children of one
GameObject. In this case, the
Monument GameObject is the
parent, and all the Floor
GameObjects are its children.
When you group objects
together like this, you can
manipulate them all together
and make copies of the whole
group while still maintaining
the relationships between
them.
3. Duplicate the Platform GameObject. The duplicate Platform will include duplicate child objects. Rename this copy of
Platform to Roof.
4. Select the Roof and use the Move and Rotate tools to put the roof onto the structure. Try positioning the Roof in the
Scene view without changing the numbers in the Transform Component, but when you are done, the numbers should look
like the ones shown below.
You have created a monument in Unity! Along the way you learned some new
concepts and practiced some old ones, such as:
â—Ź Creating an empty GameObject as a container for other GameObjects.
â—Ź Duplicating GameObjects.
â—Ź Using the Transform Component to manipulate child GameObjects.
â—Ź Nesting GameObjects to multiple levels.
â—Ź Using the Move and Rotate tools to transform a child GameObject.
Next, you will get a glimpse of the power you have over your GameObjects by
doing more with components.

More Related Content

What's hot (20)

PPTX
Intensity Transformation Functions of image with Matlab
Shafi Sourov
 
PDF
A Class-C Power Amplifiers Type of Tuned Amplifiers
ShahbazQamar2
 
PDF
Advanced computer network lab manual (practicals in Cisco Packet tracer)
VrundaBhavsar
 
PPTX
Asymptotic analysis of parallel programs
Sumita Das
 
PPSX
Noise models presented by Nisha Menon K
Nisha Menon K
 
PPTX
Fuzzy Genetic Algorithm
Pintu Khan
 
PPTX
1. digital image processing
vilasini rvr
 
PPTX
Bluetooth protocol
Rajan Shah
 
PPT
Enhancement in spatial domain
Ashish Kumar
 
PDF
InternetWorking With TCP\IP
hunghanamhus
 
PPTX
Color Image Processing
kiruthiammu
 
PPT
Voice Over IP (VoIP)
habib_786
 
PPTX
Unit 4
Mayura shelke
 
PPTX
HSI MODEL IN COLOR IMAGE PROCESSING
anam singla
 
PPTX
Seminar gprs
Ankit Anand
 
PPTX
Image Processing ppt
OECLIB Odisha Electronics Control Library
 
PDF
Content Based Image Retrieval
Swati Chauhan
 
PPTX
Pcm transmitter and receiver
BPrabhaPalani
 
PDF
Human Computer Interaction Notes 176.pdf
vijaykumarK44
 
Intensity Transformation Functions of image with Matlab
Shafi Sourov
 
A Class-C Power Amplifiers Type of Tuned Amplifiers
ShahbazQamar2
 
Advanced computer network lab manual (practicals in Cisco Packet tracer)
VrundaBhavsar
 
Asymptotic analysis of parallel programs
Sumita Das
 
Noise models presented by Nisha Menon K
Nisha Menon K
 
Fuzzy Genetic Algorithm
Pintu Khan
 
1. digital image processing
vilasini rvr
 
Bluetooth protocol
Rajan Shah
 
Enhancement in spatial domain
Ashish Kumar
 
InternetWorking With TCP\IP
hunghanamhus
 
Color Image Processing
kiruthiammu
 
Voice Over IP (VoIP)
habib_786
 
Unit 4
Mayura shelke
 
HSI MODEL IN COLOR IMAGE PROCESSING
anam singla
 
Seminar gprs
Ankit Anand
 
Content Based Image Retrieval
Swati Chauhan
 
Pcm transmitter and receiver
BPrabhaPalani
 
Human Computer Interaction Notes 176.pdf
vijaykumarK44
 

Similar to Unity - Create a structure with primitives (20)

PPTX
Unity - Building Your First Real-Time 3D Project - All Slides
NexusEdgesupport
 
PPTX
Unity - Building your first real-time 3D project
NexusEdgesupport
 
PDF
Make a match3
Fredy Alvarez Lamas
 
DOCX
2d game engine workflow
luisfvazquez1
 
PDF
An Introduction to the Unity GamingEngine
Stevexm1
 
PDF
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
noorcon
 
PDF
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
Kobkrit Viriyayudhakorn
 
PDF
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Kobkrit Viriyayudhakorn
 
PPTX
03 unity 3_d_part_2
Reham Maher El-Safarini
 
PPTX
Polybot Onboarding Process
Nina Park
 
PDF
How tomakea gameinunity3d
Dao Tung
 
PPTX
02 unity 3_d_part_1
Reham Maher El-Safarini
 
DOCX
3d game engine
luisfvazquez1
 
PDF
Tutorial2 scrolling shooter
hccit
 
PDF
Unity introduction for programmers
Noam Gat
 
DOCX
Joshua meyer 2D Game workflow document
JoshCollege
 
PPTX
Unity - Add components to 3D GameObjects
NexusEdgesupport
 
PDF
Let's make a game unity
Saija Ketola
 
PDF
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
noorcon
 
PDF
UE4BlueprintLadderVolumeTutorial
Justin Plowman
 
Unity - Building Your First Real-Time 3D Project - All Slides
NexusEdgesupport
 
Unity - Building your first real-time 3D project
NexusEdgesupport
 
Make a match3
Fredy Alvarez Lamas
 
2d game engine workflow
luisfvazquez1
 
An Introduction to the Unity GamingEngine
Stevexm1
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
noorcon
 
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
Kobkrit Viriyayudhakorn
 
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Kobkrit Viriyayudhakorn
 
03 unity 3_d_part_2
Reham Maher El-Safarini
 
Polybot Onboarding Process
Nina Park
 
How tomakea gameinunity3d
Dao Tung
 
02 unity 3_d_part_1
Reham Maher El-Safarini
 
3d game engine
luisfvazquez1
 
Tutorial2 scrolling shooter
hccit
 
Unity introduction for programmers
Noam Gat
 
Joshua meyer 2D Game workflow document
JoshCollege
 
Unity - Add components to 3D GameObjects
NexusEdgesupport
 
Let's make a game unity
Saija Ketola
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
noorcon
 
UE4BlueprintLadderVolumeTutorial
Justin Plowman
 
Ad

Recently uploaded (20)

PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
Proactive Server and System Monitoring with FME: Using HTTP and System Caller...
Safe Software
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PPTX
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
PDF
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
Proactive Server and System Monitoring with FME: Using HTTP and System Caller...
Safe Software
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
Practical Applications of AI in Local Government
OnBoard
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
Ad

Unity - Create a structure with primitives

  • 1. This tutorial is an exercise in which you can apply your understanding of GameObjects and transforms to build a structure out of 3D primitives. In this tutorial, you will: â—Ź Add primitives to an empty Scene. â—Ź Create an empty GameObject as a parent for other GameObjects. â—Ź Duplicate GameObjects. â—Ź Create parent-child relationships between GameObjects using the Hierarchy window. â—Ź Navigate around the Scene in the 3D space. â—Ź Transform the primitives to a given position, rotation, and scale.
  • 2. 1.Overview This tutorial is an exercise in which you will build an architectural GameObject made up of multiple primitives. This exercise will give you a firm grasp of how to create and manipulate GameObjects, and it will give you practice navigating around a Scene. Here is the structure you will build. As you build this structure, you might want to change your view of the Scene to make sure GameObjects are aligned. For a review, see Navigating the scene.
  • 3. 2.Create an empty GameObject An empty GameObject is a placeholder object that can be created in the Hierarchy. It does not have a visible representation in the Scene, and it can act as a container for other GameObjects (among other things to be explained later). 1. Right-click in the Hierarchy and select Create Empty.
  • 4. 2. Rename this GameObject to Monument in the Inspector. 3. Select this new GameObject in the Scene view. In the Inspector, reset the position by selecting the three dots on the right and then selecting Reset Position. This sets the position of the center of the GameObject to 0,0,0, aligning it to the center of your Scene.
  • 5. 3.Create the steps 1. In the Hierarchy, right-click the Monument GameObject and select 3D Object > Cube to create a new cube as a child of Monument. 2. Rename this new GameObject to Floor.
  • 7. 3. Right-click on the Floor GameObject and select Duplicate. (Shortcut: select Floor and press Ctrl-D.) Duplicate Floor six more times so that you have the original Floor and seven duplicates, for a total of eight floors that are children of Monument. 3.Create the steps
  • 8. 4.Transform the steps In these tasks, you will change the Transform Component values of each of the Floor objects to create the stair-step effect. 1. Select the first Floor child object and change the Transform Component values in the Inspector as shown below.
  • 9. 4.Transform the steps 2. Do the same for the rest of the Floor objects using the values indicated below. Values for Floor (1) GameObject Values for Floor (2) GameObject Values for Floor (3) GameObject
  • 10. 4.Transform the steps By now you should have something similar to this:
  • 11. 4.Transform the steps Values for Floor (4) GameObject Values for Floor (5) GameObject Values for Floor (6) GameObject Values for Floor (7) GameObject
  • 12. You should now have the steps of the monument.
  • 13. 5.Create the walls 1. Create another Cube primitive as a child of the Monument GameObject and rename it to Wall. 2. Change the values in the Inspector as shown below.
  • 14. The wall is now rotated so that it is diagonal across the Floor.
  • 15. 3. Duplicate the wall three times and change the Transform Component values as shown below. Wall (1) GameObject Wall (3) GameObject Wall (2) GameObject
  • 16. You will now have 4 walls at 45 degrees.
  • 17. 6.Create the roof 1. Create a new empty GameObject as a child of the Monument GameObject and name it Platform.
  • 18. 2. Drag all the floor objects into the Platform GameObject. This creates what is called a nested GameObject, in which objects are nested at multiple levels as children of one GameObject. In this case, the Monument GameObject is the parent, and all the Floor GameObjects are its children. When you group objects together like this, you can manipulate them all together and make copies of the whole group while still maintaining the relationships between them.
  • 19. 3. Duplicate the Platform GameObject. The duplicate Platform will include duplicate child objects. Rename this copy of Platform to Roof. 4. Select the Roof and use the Move and Rotate tools to put the roof onto the structure. Try positioning the Roof in the Scene view without changing the numbers in the Transform Component, but when you are done, the numbers should look like the ones shown below.
  • 20. You have created a monument in Unity! Along the way you learned some new concepts and practiced some old ones, such as: â—Ź Creating an empty GameObject as a container for other GameObjects. â—Ź Duplicating GameObjects. â—Ź Using the Transform Component to manipulate child GameObjects. â—Ź Nesting GameObjects to multiple levels. â—Ź Using the Move and Rotate tools to transform a child GameObject. Next, you will get a glimpse of the power you have over your GameObjects by doing more with components.