Writing code is a skill, and like any other skill, getting better at it takes practice and experimentation. Unity is be a really valuable tool for that.
Unity is a cross-platform game development tool that you can use to make professional-quality games, simulations, and more. It’s also a fun and satisfying way to get practice with the C# tools and ideas you’ll learn throughout Head First C#. We designed these short, targeted labs to reinforce the concepts and techniques you just learned to help you hone your C# skills.
These labs are an optional part of the book, but valuable practice—even if you aren’t planning on using C# to build games.
In the Head First C# Unity Labs you'll use Unity, the powerful platform for 2D and 3D game development, to explore C# and practice your C# skills.
Unity_Lab_1_Explore_CSharp_with_Unity.pdf
– Explore C# with UnityUnity_Lab_2_Write_CSharp_Code_for_Unity.pdf
– Write C# Code for UnityUnity_Lab_3_GameObject_Instances.pdf
– GameObject InstancesUnity_Lab_4_User_Interfaces.pdf
– User InterfacesUnity_Lab_5_Raycasting.pdf
– RaycastingUnity_Lab_6_Scene_Navigation.pdf
– Scene Navigation
There's more to learn about Unity! We've written additional Unity Labs that go beyond the material in the book to teach you important Unity topics, and give you more practice building 3D games.
Unity_Lab_7_Physics.pdf
– PhysicsUnity_Lab_8_Collision_Detection.pdf
- Collision DetectionUnity_Lab_9_Unity_Boss_Battle.pdf
- Unity Boss BattleUnity_Lab_10_robots.pdf
- robotsUnity_Labs_Rider_Edition.pdf
- JetBrains Rider edition of Unity Labs 1 through 4
You can find the code for the Unity Lab projects in the Code/Unity_Labs/ folder
. You can load a project into Unity by:
- Downloading it (or cloning this whole repository)
- Adding its folder to Unity Hub
- Opening it in Unity Hub
- Opening SampleScene from the Scenes folder