Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning C# by Developing Games with Unity 6
  • Table Of Contents Toc
Learning C# by Developing Games with Unity 6

Learning C# by Developing Games with Unity 6 - Eighth Edition

By : Harrison Ferrone
5 (1)
close
close
Learning C# by Developing Games with Unity 6

Learning C# by Developing Games with Unity 6

5 (1)
By: Harrison Ferrone

Overview of this book

It's the ability to write custom C# scripts for behaviors and game mechanics that really takes Unity the extra mile. That's where this book will help you as a new programmer! Harrison Ferrone, in this eighth edition of the bestselling series, will take you through the core concepts of programming and the C# language from scratch, while building an engaging and playable game prototype in Unity 6. You’ll get to grips with the fundamentals of object-oriented programming (OOP) and the Unity engine with lots of code samples, exercises, and tips to go beyond the book with your work. You’ll write C# scripts for simple game mechanics, perform procedural programming, request live data from the web, and add complexity to your games by introducing intelligent enemies and damage-dealing projectiles. You’ll also explore the underlying mechanics of Unity game development, including game design, lighting basics, player movement, camera controls, collisions, and more, with every passing chapter. Note: The screenshots in the book display the Unity Editor in full-screen mode for a comprehensive view. You can easily reference color versions of images by downloading them from the GitHub repository or the graphics bundle linked in the book.
Table of Contents (20 chapters)
close
close
Preface
16
Unlock Your Book’s Exclusive Benefits
17
Pop Quiz Answers
18
Other Books You May Enjoy
19
Index

Collections at a glance

So far, we’ve only needed variables to store a single value, but there are many conditions where a group of values will be required. Collection types in C# include arrays, lists, and dictionaries—each has its strengths and weaknesses, which we’ll discuss in the following sections.

Arrays

Arrays are the most basic collection that C# offers. Think of them as containers for a group of values, called elements in programming terminology, each of which can be accessed or modified individually:

  • Arrays can store any type of value; all the elements need to be of the same type.
  • The length, or the number of elements an array can have, is set when it’s created and can’t be modified afterward.
  • If no initial values are assigned when it’s created, each element will be given a default value. Arrays storing number types default to zero, while any other type gets set to null or nothing.
  • Arrays are the least flexible collection type in...
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
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon