Training Center

Adding Interactivity

Adding Interactivity

What is the main thing that makes a game different from a movie, a song, or a picture? It's the ability for the user to interact with, control, and affect the elements within the game. Interactivity is crucial to game design and in this training module we'll show you how to add interactivity by using C# programming within Unity. You'll learn how to use scripts, variables, functions, user inputs, and more in order to make your games come alive.

This introductory chapter will cover the basics of creating and using scripts within Unity. Unity supports several different programming languages; Javascript, C# (pronounced "C Sharp"), and Boo. We'll be using C# as the programming language for this training module.
Tagged under

Additional Info

  • Runtime 03 min 18 sec
  • Software Unity
Login to download project files
Variables are used as programming storage locations to hold values and they come in three different types; public, private, and static. We'll use Unity to show the differences between these variable types and how to use them.
Tagged under

Additional Info

  • Runtime 05 min 54 sec
  • Software Unity
Functions are blocks of code that have reusable properties that can be called from different parts of the script. In this chapter we'll give an introduction to functions and talk about some of the basic functions, such as Start, Awake, and Update. You'll also learn how to begin writing your own functions.

Additional Info

  • Runtime 10 min 38 sec
  • Software Unity
Enumerations are data types that consist of a set of named values. In this chapter we'll go over enumerations and give some examples on how to use them.

Additional Info

  • Runtime 06 min 13 sec
  • Software Unity
Being able to use your scripts to access the objects in your game is necessary for adding interactivity. In this chapter we'll show you how to work with GameObjects you've created in Unity.
Tagged under

Additional Info

  • Runtime 09 min 54 sec
  • Software Unity
Accessing the different components that make up your game objects is another important aspect of adding interactivity. This chapter will show you to access components from within your Unity C# scripts.
Tagged under

Additional Info

  • Runtime 06 min 52 min
  • Software Unity
We covered the different variable types in Chapter 2 of this training module and now we'll show how to access them through scripting. You'll learn how to use C# to call your variables and then see their changes within Unity.
Tagged under

Additional Info

  • Runtime 10 min 36 sec
  • Software Unity
Script directives are a useful way to organize and streamline your game development process. This chapter will cover the 'Execute In Edit Mode' command and show how to use it.
Tagged under

Additional Info

  • Runtime 04 min 09 sec
  • Software Unity
'Context Menu' is another useful script directive that allows you to add options within the Unity Editor. This chapter will cover the basics of context menus and show you how to use them effectively.
Tagged under

Additional Info

  • Runtime 02 min 16 sec
  • Software Unity
The final script directive we'll talk about in this training module is 'Require Component'. By scripting in this directive you can tell the game to search for, and automatically add, specific components that need to be present. This is useful for organization and avoiding script errors within Unity.
Tagged under

Additional Info

  • Runtime 02 min 45 sec
  • Software Unity
This short chapter will give an overview of the console window in Unity and how to use it. The console is useful for debugging and checking out errors that are present within the game.
Tagged under

Additional Info

  • Runtime 2 min 09 sec
  • Software Unity
User input is what allows the player to control and influence the elements of a video game. In this chapter we'll cover one of the most basic of user inputs, get button or key down. We'll show how to use the Input Manager to assign specific buttons or keys to actions, and then how to access them within the C# scripts.
Tagged under

Additional Info

  • Runtime 06 min 57 sec
  • Software Unity

Chapter List

Questions? ¿Preguntas? 有问题吗? Domande? Вопросы? 質問はありますか? सवाल? الأسئلة؟
This email address is being protected from spambots. You need JavaScript enabled to view it.

About design3

design3 is THE game production web portal. Whether you’re an industry veteran keeping up with new tools and trends or an aspiring developer searching for professional training, expert advice and career tips – design3.com is where you need to be.

Sign-up for our newsletter!

:

©2014 Design3 LLC. All Rights Reserved.

Sign In or Become a member

Facebook user?

You can use your Facebook account to sign into our site.

Log in with Facebook

LOG IN

ONLINE GUITAR LESSONS FOR BEGINNERS | snapchat login | best vitamin c serum