Training Center

Unity Scripting with Javascript

Unity Scripting with Javascript

Scripting is at the heart of Unity's ease of use. Learn the basics of Javascript to unlock the full potential of your games. This module covers basic programming concepts such as variables, logic loops, and data types, as well as Unity-specific classes that relate to the object-oriented Editor tool (such as accessing GameObjects and Components).

Discover some basic programming terms and logic concepts, including some that are unique to Unity.

Additional Info

  • Runtime 12 min 07 sec
  • Software Unity

Learn how to declare different types of variables in your javascripts, and see how public variables interact with the Unity Editor.

Additional Info

  • Runtime 03 min 42 sec
  • Software Unity

We walk you through a basic if...then logic statement, which allows you to conditionally execute script commands.

Additional Info

  • Runtime 03 min 34 sec
  • Software Unity

We show you how to control and get information from other components in the current GameObject using scripting.

Tagged under

Additional Info

  • Runtime 01 min 49 sec
  • Software Unity

You can make any public variable a builtin array, allowing for more efficient and flexible coding in some situations. We show you how to do this and how it's reflected in the Editor.

Tagged under

Additional Info

  • Runtime 02 min 29 sec
  • Software Unity

A for loop iterates through a list of values and applies the same logic multiple times using each unique value. We use this to evaluate our array of values from Unity Scripting Chapter 6.

Additional Info

  • Runtime 07 min 16 sec
  • Software Unity

We explore some common data types and how to use them. We use float and Vector3 data to rotate an object over time.

Additional Info

  • Runtime 04 min 26 sec
  • Software Unity

The ability to communicate between objects and components in the Unity Editor and scripting logic is a powerful and crucial aspect of the Unity design and development paradigm, and we show you how right here.

Additional Info

  • Runtime 11 min 50 sec
  • Software Unity

Script directives allow you to streamline your game production process and reduce common errors. We walk through two common ways to use this to your advantage. 

Additional Info

  • Runtime 03 min 18 sec
  • Software Unity

You'll learn how to use Static Variables to easily store and access script values globally without use of local accessor functions.

Additional Info

  • Runtime 03 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!

:

Copyright © 2006 - 2012 design3. 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