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 Game Development with Unity for .NET Developers
  • Table Of Contents Toc
  • Feedback & Rating feedback
Game Development with Unity for .NET Developers

Game Development with Unity for .NET Developers

By : Jiadong Chen
4.9 (9)
close
close
Game Development with Unity for .NET Developers

Game Development with Unity for .NET Developers

4.9 (9)
By: Jiadong Chen

Overview of this book

Understand what makes Unity the world’s most widely used real-time 3D development platform and explore its powerful features for creating 3D and 2D games, as well as the Unity game engine and the Microsoft Game Dev, including the Microsoft Azure Cloud and Microsoft Azure PlayFab services, to create games. You will start by getting acquainted with the Unity editor and the basic concepts of Unity script programming with C#. You'll then learn how to use C# code to work with Unity's built-in modules, such as UI, animation, physics, video, and audio, and understand how to develop a game with Unity and C#. As you progress through the chapters, you'll cover advanced topics such as the math involved in computer graphics and how to create a custom render pipeline in Unity with the new Scriptable Render Pipeline, all while optimizing performance in Unity. Along the way, you'll be introduced to Microsoft Game Dev, Azure services, and Azure PlayFab, and using the Unity3D PlayFab SDK to access the PlayFab API. By the end of this Unity book, you'll have become familiar with the Unity engine and be ready to develop your own games while also addressing the performance issues that you could encounter in the development process.
Table of Contents (16 chapters)
close
close
1
Part 1: Basic Unity Concepts
4
Part 2: Using C# Scripts to Work with Unity's Built-In Modules
9
Part 3: Advanced Scripting in Unity

Creating a script and using it as a component

In addition to Unity's built-in components, we can also create script components. When you create a script and attach it to a GameObject, you can see the component you created in the GameObject's Inspector window, just like Unity's built-in components.

How to create a new script in Unity

It is very easy to create a new C# script in Unity. I will introduce two different ways to do it.

Firstly, you can right-click the Project panel in the Unity Editor, and then a menu will pop up. You only need to select Create | C# Script, then the Unity Editor will create a C# file in the folder identified in the Project panel.

Figure 2.31 – Creating a new C# script from the Create menu

The filename of the new script is NewBehaviourScript.cs by default. You can change the name when creating it.

Figure 2.32 – Changing the name of the script when creating it

For example...

Visually different images
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.
Game Development with Unity for .NET Developers
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