Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learning C# by Developing Games with Unity 6

You're reading from   Learning C# by Developing Games with Unity 6 Get to grips with coding in C# and build simple 3D games in Unity from the ground up

Arrow left icon
Product type Paperback
Published in Oct 2025
Publisher Packt
ISBN-13 9781805808718
Length 504 pages
Edition 8th Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Harrison Ferrone Harrison Ferrone
Author Profile Icon Harrison Ferrone
Harrison Ferrone
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface
1. Getting to Know Your Environment FREE CHAPTER 2. The Building Blocks of Programming 3. Diving into Variables, Types, and Methods 4. Control Flow and Collection Types 5. Working with Classes, Structs, and OOP 6. Getting Your Hands Dirty with Unity 7. Movement, Camera Controls, and Collisions 8. Scripting Game Mechanics 9. Basic AI and Enemy Behavior 10. Revisiting Types, Methods, and Classes 11. Specialized Collection Types and LINQ 12. Saving, Loading, and Serializing Data 13. Connecting to the World Wide Web 14. Exploring Generics, Delegates, and Beyond 15. The Journey Continues 16. Unlock Your Book’s Exclusive Benefits
17. Pop Quiz Answers
18. Other Books You May Enjoy
19. Index

Getting to Know Your Environment

Pop culture loves to market computer programmers as outsiders, lone wolves, or geeky hackers – people who possess extraordinary mental gifts for algorithmic thought, little social IQ, and the odd anarchic bent. While this generalization is often incorrect (like all widescale generalizations), there is something to the idea that learning to code fundamentally changes the way you look at the world.

The good news is that your naturally curious mind already wants to see patterns in the world, and you may even come to enjoy this new way of thinking. From the moment your eyes snap open in the morning to the last glimpse of your ceiling fan before you go to sleep, you’re unconsciously using analytical skills that directly translate to programming—you’re just missing the right language and syntax to map those life skills into code.

You know your age, right? That’s a variable. When you cross the street, I presume you look down the road in both directions before stepping off the curb like the rest of us. That’s evaluating different conditions, better known as control flow in programming terminology. When you look at a can of soda, you instinctively identify that it has certain properties, such as shape, weight, and contents. That’s a class object! You get the idea.

With all that real-world experience at your fingertips, you’re more than ready to cross over into the realm of programming. To kick off your journey, you’ll need to know how to set up your development environment, work with the applications involved, and know exactly where to go when you need help.

To that end, we’re going to begin by delving into the following C# topics:

  • Getting started with Unity 6
  • Using C# with Unity
  • Exploring the documentation

Let’s get started!

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning C# by Developing Games with Unity 6
You have been reading a chapter from
Learning C# by Developing Games with Unity 6 - Eighth Edition
Published in: Oct 2025
Publisher: Packt
ISBN-13: 9781805808718
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime
Modal Close icon
Modal Close icon