Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning C# by Developing Games with Unity

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

Arrow left icon
Product type Paperback
Published in Nov 2022
Publisher Packt
ISBN-13 9781837636877
Length 466 pages
Edition 7th 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 (18) 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. Exploring Generics, Delegates, and Beyond 14. The Journey Continues 15. Pop Quiz Answers
16. Other Books You May Enjoy
17. Index

Getting to Know Your Environment

Pop culture likes 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 isn’t the case, 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 these kinds of 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, like 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 those ends, we’re going to begin by delving into the following C# topics:

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

Let’s get started!

You have been reading a chapter from
Learning C# by Developing Games with Unity - Seventh Edition
Published in: Nov 2022
Publisher: Packt
ISBN-13: 9781837636877
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 $19.99/month. Cancel anytime