Getting Started with Unity 4 Scripting [Video]

Getting Started with Unity 4 Scripting [Video]

Starting
Juan Sebastian Muñoz

Harness the power of scripting in Unity 4 to build great games
$72.25
RRP $84.99
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Code Files
+ Collection

Video Details

ISBN 139781849696128
Course Length126 mins 54 seconds

About This Book

Who This Book Is For

Getting Started with Unity 4 Scripting is for anyone new to Unity, as well as someone with basic knowledge of C# syntax and some experience with Unity. This course will provide insight into the internal workings of Unity's game engine.

Table of Contents

Render Loops and Basic Entry Point Functions
Expose Variables in the Inspector from Scripts
Entry Points when Scripting in Unity
Show Different Usages of the Render Loops
Triggers and Collision Callbacks
Special Triggers
Components – Adding, Removing, Accessing
Components and Their Use
Accessing a Custom Component in the Same Game Object
Accessing a Component from the Engine Using Scripts
Accesing Components in Other Game Objects
Searching Components in Game Objects that Have Children
Input in Unity
Input Manager Overview
Connecting the Input Manager with Scripting
Axis, Keys and Their Differences
Dissecting Specific Key Presses – Up / Down / Stay
Mouse Input
Gizmos and Their Usefulness in Your Game
Gizmos Functions Overview
Gizmos and Scripts
Using Gizmos for Visualizing Data
Uses of Raycasting and Gizmos
Making Gizmos Work with Other Components
Character Controller
Anatomy of a Character Controller
Modifying a Character Controller to Work with Custom Scripts
Making the Character Controller Work with the Input System
Creating a First-person Character Controller
Adding Movement Animations to a Character Controller
GUI Scripting
GUI Overview and Types of Controls
Manual GUI Placing
GUI Layouts
Mixing the GUI System with the Input System
Skinning Your Created GUI
Pathfinding and AI
AI Pathfinding System Overview and Its Components
NavMeshAgent Overview
OffMeshLinks Overview
Making the AI System Interact with Your Scripts
Creating a Basic Sandbox for Playing with Agents
Script Compilation Order and Mixing Languages in Unity
Script Execution Order in Unity
Script Compilation Order in Unity
Functions Execution Order in Unity
How to Mix Languages in Unity
Calling JS Functions from C#

What You Will Learn

  • Learn how the basic entry points in Unity work, such as render loops, start and awake functions, colliders, and triggers
  • Create custom code that interacts with Unity engine components; such as scripts to make the engine's Artificial Intelligence move
  • Learn how to harness mouse, keyboard, and controller input with your scripts
  • Encapsulate your project in order to be able to port it to other platforms in the future
  • Create visual aids to help you to better understand how your scripts behave through the use of Gizmos
  • Learn how to make a basic character move in Unity; with this you will have the knowledge to make an FPS or a third-person character controller and also know how to mix it with your custom scripts
  • Create basic GUI controls and create your custom GUI either by manually placing it or letting the engine do all the layout placing for you
  • Create custom GUI skins that blend well with your game's art
  • Learn how to combine different languages in Unity, such as mixing JavaScript and C# in case you need to use external libraries written in other languages that the Unity game engine also supports
  • Discover the intricacies of how different scripts get executed in order to manually specify an order of execution for your custom scripts
  • Learn about how Unity's game engine compiles scripts; mix and match programming languages in your game
  • Work with Unity's AI pathfinding system; create enemies for your game or friendly bots to help a player

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.

Style and Approach

Packt video courses are designed to cover the breadth of the topic in short, hands-on, task-based videos. Each course is divided into short manageable sections, so you can watch the whole thing or jump to the bit you need. The focus is on practical instructions and screencasts showing you how to get the job done.

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.

Authors

Screenshots

Table of Contents

Render Loops and Basic Entry Point Functions
Expose Variables in the Inspector from Scripts
Entry Points when Scripting in Unity
Show Different Usages of the Render Loops
Triggers and Collision Callbacks
Special Triggers
Components – Adding, Removing, Accessing
Components and Their Use
Accessing a Custom Component in the Same Game Object
Accessing a Component from the Engine Using Scripts
Accesing Components in Other Game Objects
Searching Components in Game Objects that Have Children
Input in Unity
Input Manager Overview
Connecting the Input Manager with Scripting
Axis, Keys and Their Differences
Dissecting Specific Key Presses – Up / Down / Stay
Mouse Input
Gizmos and Their Usefulness in Your Game
Gizmos Functions Overview
Gizmos and Scripts
Using Gizmos for Visualizing Data
Uses of Raycasting and Gizmos
Making Gizmos Work with Other Components
Character Controller
Anatomy of a Character Controller
Modifying a Character Controller to Work with Custom Scripts
Making the Character Controller Work with the Input System
Creating a First-person Character Controller
Adding Movement Animations to a Character Controller
GUI Scripting
GUI Overview and Types of Controls
Manual GUI Placing
GUI Layouts
Mixing the GUI System with the Input System
Skinning Your Created GUI
Pathfinding and AI
AI Pathfinding System Overview and Its Components
NavMeshAgent Overview
OffMeshLinks Overview
Making the AI System Interact with Your Scripts
Creating a Basic Sandbox for Playing with Agents
Script Compilation Order and Mixing Languages in Unity
Script Execution Order in Unity
Script Compilation Order in Unity
Functions Execution Order in Unity
How to Mix Languages in Unity
Calling JS Functions from C#

Video Details

ISBN 139781849696128
Course Length126 mins 54 seconds
Read More