O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting Started with Unity 4 Scripting

Video Description

Harness the power of scripting in Unity 4 to build great games

About This Video

  • A great resource for anyone new to Unity 4 scripting

  • Clear step-by-step explanations for each line of code

  • Create custom components that interact with Unity's game engine components

  • Enhance your game with an easy-to-use and extendable input system that works on leading game platforms

  • Create a cool custom GUI for your game

  • Accompanied with finished assets, scripts, and tips for programming in Unity

  • In Detail

    Create fantastic projects in Unity without any fuss; learn how to set up a basic project and build on it to utilize the Unity game engine's full potential, using custom scripts and graphical feedback (Gizmos) to create extraordinary games easily.

    Getting Started with Unity 4 Scripting will explain everything that you need to know; from the basics of the Unity game engine, through to how the component system and Input Manager works. Learn how to create a custom GUI and set up basic AI pathfinding systems, and progressively cover more advanced topics such as inter-communication between the different languages that the Unity game engine supports.

    With this video course, you will learn about render loops and basic entry point functions that the Unity engine exposes, followed by the component system, Input system, Gizmos, character controllers, and GUI Scripting. This video course culminates by teaching you about the AI system and the script compilation orders that the Unity game engine provides, as well as all the basic components that comprise a good game.

    Learn everything you need to know about how scripting in Unity works; everything from exposing variables in scripts, entry point functions, render loops, and colliders, including how to make them work, to an in-depth introduction of the component system and its intricacies. Discover how to add, remove, and create custom components, as well as about the anatomy of the Input, GUI, and Gizmos system, how they work, and how they behave in tandem.

    By the end of this course, you'll be knowledgeable enough to create any basic game by harnessing the power of Unity.

    Table of Contents

    1. Chapter 1 : Render Loops and Basic Entry Point Functions
      1. Expose Variables in the Inspector from Scripts 00:02:57
      2. Entry Points when Scripting in Unity 00:03:11
      3. Show Different Usages of the Render Loops 00:03:06
      4. Triggers and Collision Callbacks 00:03:12
      5. Special Triggers 00:03:10
    2. Chapter 2 : Components – Adding, Removing, Accessing
      1. Components and Their Use 00:03:26
      2. Accessing a Custom Component in the Same Game Object 00:03:02
      3. Accessing a Component from the Engine Using Scripts 00:03:10
      4. Accesing Components in Other Game Objects 00:03:05
      5. Searching Components in Game Objects that Have Children 00:03:06
    3. Chapter 3 : Input in Unity
      1. Input Manager Overview 00:02:56
      2. Connecting the Input Manager with Scripting 00:03:12
      3. Axis, Keys and Their Differences 00:03:08
      4. Dissecting Specific Key Presses – Up / Down / Stay 00:03:05
      5. Mouse Input 00:03:23
    4. Chpater 4 : Gizmos and Their Usefulness in Your Game
      1. Gizmos Functions Overview 00:03:13
      2. Gizmos and Scripts 00:03:04
      3. Using Gizmos for Visualizing Data 00:03:04
      4. Uses of Raycasting and Gizmos 00:03:11
      5. Making Gizmos Work with Other Components 00:03:07
    5. Chapter 5 : Character Controller
      1. Anatomy of a Character Controller 00:03:09
      2. Modifying a Character Controller to Work with Custom Scripts 00:03:09
      3. Making the Character Controller Work with the Input System 00:03:08
      4. Creating a First-person Character Controller 00:03:14
      5. Adding Movement Animations to a Character Controller 00:03:24
    6. Chapter 6 : GUI Scripting
      1. GUI Overview and Types of Controls 00:03:01
      2. Manual GUI Placing 00:03:33
      3. GUI Layouts 00:03:11
      4. Mixing the GUI System with the Input System 00:03:10
      5. Skinning Your Created GUI 00:03:08
    7. Chapter 7 : Pathfinding and AI
      1. AI Pathfinding System Overview and Its Components 00:03:13
      2. NavMeshAgent Overview 00:03:09
      3. OffMeshLinks Overview 00:03:17
      4. Making the AI System Interact with Your Scripts 00:03:09
      5. Creating a Basic Sandbox for Playing with Agents 00:03:31
    8. Chapter 8 : Script Compilation Order and Mixing Languages in Unity
      1. Script Execution Order in Unity 00:03:09
      2. Script Compilation Order in Unity 00:03:02
      3. Functions Execution Order in Unity 00:03:12
      4. How to Mix Languages in Unity 00:03:14
      5. Calling JS Functions from C# 00:03:01