SlideShare a Scribd company logo
1 of 20
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.
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

Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notesSiva Ayyakutti
 
Cost Effective Technology of Medical Health Care in Medical Institutions
Cost Effective Technology of Medical Health Care in Medical InstitutionsCost Effective Technology of Medical Health Care in Medical Institutions
Cost Effective Technology of Medical Health Care in Medical Institutionsnisaiims
 
Project scope management
Project scope managementProject scope management
Project scope managementDhani Ahmad
 
PMP Key Exam Concepts - Formulas
PMP Key Exam Concepts - FormulasPMP Key Exam Concepts - Formulas
PMP Key Exam Concepts - FormulasAnand Bobade
 
Evolutionary models
Evolutionary modelsEvolutionary models
Evolutionary modelsPihu Goel
 
Project Implementation
Project ImplementationProject Implementation
Project ImplementationPradeep Panda
 
Challenges Of Project Management
Challenges Of Project ManagementChallenges Of Project Management
Challenges Of Project Managementashutoshsachan
 
MIS: Project Management Systems
MIS: Project Management SystemsMIS: Project Management Systems
MIS: Project Management SystemsJonathan Coleman
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software EngineeringFáber D. Giraldo
 

What's hot (14)

Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notes
 
Cost Effective Technology of Medical Health Care in Medical Institutions
Cost Effective Technology of Medical Health Care in Medical InstitutionsCost Effective Technology of Medical Health Care in Medical Institutions
Cost Effective Technology of Medical Health Care in Medical Institutions
 
Project scope management
Project scope managementProject scope management
Project scope management
 
Gestione dei requisiti
Gestione dei requisitiGestione dei requisiti
Gestione dei requisiti
 
CBAP® Preparation Course
CBAP® Preparation CourseCBAP® Preparation Course
CBAP® Preparation Course
 
PMP Key Exam Concepts - Formulas
PMP Key Exam Concepts - FormulasPMP Key Exam Concepts - Formulas
PMP Key Exam Concepts - Formulas
 
Project auditing
Project auditingProject auditing
Project auditing
 
Evolutionary models
Evolutionary modelsEvolutionary models
Evolutionary models
 
GCCSI Financial Model Case Study
GCCSI Financial Model Case StudyGCCSI Financial Model Case Study
GCCSI Financial Model Case Study
 
Pmp quality chapter 8
Pmp quality chapter 8Pmp quality chapter 8
Pmp quality chapter 8
 
Project Implementation
Project ImplementationProject Implementation
Project Implementation
 
Challenges Of Project Management
Challenges Of Project ManagementChallenges Of Project Management
Challenges Of Project Management
 
MIS: Project Management Systems
MIS: Project Management SystemsMIS: Project Management Systems
MIS: Project Management Systems
 
Project Planning in Software Engineering
Project Planning in Software EngineeringProject Planning in Software Engineering
Project Planning in Software Engineering
 

Similar to Unity - Create a structure with primitives

Unity - Building Your First Real-Time 3D Project - All Slides
Unity - Building Your First Real-Time 3D Project - All SlidesUnity - Building Your First Real-Time 3D Project - All Slides
Unity - Building Your First Real-Time 3D Project - All SlidesNexusEdgesupport
 
Unity - Building your first real-time 3D project
Unity - Building your first real-time 3D projectUnity - Building your first real-time 3D project
Unity - Building your first real-time 3D projectNexusEdgesupport
 
2d game engine workflow
2d game engine workflow2d game engine workflow
2d game engine workflowluisfvazquez1
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
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
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2Kobkrit Viriyayudhakorn
 
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming Kobkrit Viriyayudhakorn
 
Polybot Onboarding Process
Polybot Onboarding ProcessPolybot Onboarding Process
Polybot Onboarding ProcessNina Park
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3dDao Tung
 
Tutorial2 scrolling shooter
Tutorial2 scrolling shooterTutorial2 scrolling shooter
Tutorial2 scrolling shooterhccit
 
Unity introduction for programmers
Unity introduction for programmersUnity introduction for programmers
Unity introduction for programmersNoam Gat
 
Joshua meyer 2D Game workflow document
Joshua meyer 2D Game workflow documentJoshua meyer 2D Game workflow document
Joshua meyer 2D Game workflow documentJoshCollege
 
Unity - Add components to 3D GameObjects
Unity - Add components to 3D GameObjectsUnity - Add components to 3D GameObjects
Unity - Add components to 3D GameObjectsNexusEdgesupport
 
Let's make a game unity
Let's make a game   unityLet's make a game   unity
Let's make a game unitySaija Ketola
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)noorcon
 
UE4BlueprintLadderVolumeTutorial
UE4BlueprintLadderVolumeTutorialUE4BlueprintLadderVolumeTutorial
UE4BlueprintLadderVolumeTutorialJustin Plowman
 
Cmd unity withc
Cmd unity withcCmd unity withc
Cmd unity withcumairnoora
 

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

Unity - Building Your First Real-Time 3D Project - All Slides
Unity - Building Your First Real-Time 3D Project - All SlidesUnity - Building Your First Real-Time 3D Project - All Slides
Unity - Building Your First Real-Time 3D Project - All Slides
 
Unity - Building your first real-time 3D project
Unity - Building your first real-time 3D projectUnity - Building your first real-time 3D project
Unity - Building your first real-time 3D project
 
Make a match3
Make a match3Make a match3
Make a match3
 
2d game engine workflow
2d game engine workflow2d game engine workflow
2d game engine workflow
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
 
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
 
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
Lecture 4: ITS488 Digital Content Creation with Unity - Game and VR Programming
 
03 unity 3_d_part_2
03 unity 3_d_part_203 unity 3_d_part_2
03 unity 3_d_part_2
 
Polybot Onboarding Process
Polybot Onboarding ProcessPolybot Onboarding Process
Polybot Onboarding Process
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
 
02 unity 3_d_part_1
02 unity 3_d_part_102 unity 3_d_part_1
02 unity 3_d_part_1
 
3d game engine
3d game engine3d game engine
3d game engine
 
Tutorial2 scrolling shooter
Tutorial2 scrolling shooterTutorial2 scrolling shooter
Tutorial2 scrolling shooter
 
Unity introduction for programmers
Unity introduction for programmersUnity introduction for programmers
Unity introduction for programmers
 
Joshua meyer 2D Game workflow document
Joshua meyer 2D Game workflow documentJoshua meyer 2D Game workflow document
Joshua meyer 2D Game workflow document
 
Unity - Add components to 3D GameObjects
Unity - Add components to 3D GameObjectsUnity - Add components to 3D GameObjects
Unity - Add components to 3D GameObjects
 
Let's make a game unity
Let's make a game   unityLet's make a game   unity
Let's make a game unity
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 3 (Preview)
 
UE4BlueprintLadderVolumeTutorial
UE4BlueprintLadderVolumeTutorialUE4BlueprintLadderVolumeTutorial
UE4BlueprintLadderVolumeTutorial
 
Cmd unity withc
Cmd unity withcCmd unity withc
Cmd unity withc
 

Recently uploaded

How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 

Recently uploaded (20)

How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 

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.
  • 6.
  • 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.