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

Unit iii(part b - architectural design)
Unit   iii(part b - architectural design)Unit   iii(part b - architectural design)
Unit iii(part b - architectural design)BALAJI A
 
SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4  SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4 Mohammad Faizan
 
Software architecture Unit 1 notes
Software architecture Unit 1 notesSoftware architecture Unit 1 notes
Software architecture Unit 1 notesSudarshan Dhondaley
 
End to End Communication protection
End to End Communication protectionEnd to End Communication protection
End to End Communication protectionSibiKrishnan
 
Software testing
Software testingSoftware testing
Software testingAshu Bansal
 
Quality attributes in software architecture by Dr.C.R.Dhivyaa, Assistant prof...
Quality attributes in software architecture by Dr.C.R.Dhivyaa, Assistant prof...Quality attributes in software architecture by Dr.C.R.Dhivyaa, Assistant prof...
Quality attributes in software architecture by Dr.C.R.Dhivyaa, Assistant prof...Dhivyaa C.R
 
CS5032 Case study Ariane 5 launcher failure
CS5032 Case study Ariane 5 launcher failureCS5032 Case study Ariane 5 launcher failure
CS5032 Case study Ariane 5 launcher failureIan Sommerville
 
Cloud computing and Docker
Cloud computing and DockerCloud computing and Docker
Cloud computing and DockerSrinivasVaddi4
 
What is the Future of Systems Engineering?
What is the Future of Systems Engineering?What is the Future of Systems Engineering?
What is the Future of Systems Engineering?Elizabeth Steiner
 
Software Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By SrikanthSoftware Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By SrikanthSrikanth Krishnamoorthy
 
Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2Sudarshan Dhondaley
 

What's hot (20)

Unit iii(part b - architectural design)
Unit   iii(part b - architectural design)Unit   iii(part b - architectural design)
Unit iii(part b - architectural design)
 
SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4  SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4
 
Software architecture Unit 1 notes
Software architecture Unit 1 notesSoftware architecture Unit 1 notes
Software architecture Unit 1 notes
 
End to End Communication protection
End to End Communication protectionEnd to End Communication protection
End to End Communication protection
 
Software testing
Software testingSoftware testing
Software testing
 
Quality attributes in software architecture by Dr.C.R.Dhivyaa, Assistant prof...
Quality attributes in software architecture by Dr.C.R.Dhivyaa, Assistant prof...Quality attributes in software architecture by Dr.C.R.Dhivyaa, Assistant prof...
Quality attributes in software architecture by Dr.C.R.Dhivyaa, Assistant prof...
 
09 grasp
09 grasp09 grasp
09 grasp
 
CS5032 Case study Ariane 5 launcher failure
CS5032 Case study Ariane 5 launcher failureCS5032 Case study Ariane 5 launcher failure
CS5032 Case study Ariane 5 launcher failure
 
Hypervisor
HypervisorHypervisor
Hypervisor
 
Cloud computing and Docker
Cloud computing and DockerCloud computing and Docker
Cloud computing and Docker
 
Dasar Virtualisasi
Dasar VirtualisasiDasar Virtualisasi
Dasar Virtualisasi
 
UML
UMLUML
UML
 
Manual testing ppt
Manual testing pptManual testing ppt
Manual testing ppt
 
Underlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computingUnderlying principles of parallel and distributed computing
Underlying principles of parallel and distributed computing
 
What is the Future of Systems Engineering?
What is the Future of Systems Engineering?What is the Future of Systems Engineering?
What is the Future of Systems Engineering?
 
Livro insights de deus i
Livro   insights de deus iLivro   insights de deus i
Livro insights de deus i
 
Software Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By SrikanthSoftware Testing - A sneak preview By Srikanth
Software Testing - A sneak preview By Srikanth
 
Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 

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

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

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.