Buying for a Team? Gift This Course
Wishlisted Wishlist

Please confirm that you want to add Getting Started with Unity 4 Scripting to your Wishlist.

Add to Wishlist

Getting Started with Unity 4 Scripting

Harness the power of scripting in Unity 4 to build great games
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
22 students enrolled
Last updated 11/2014
$15 $85 82% off
30-Day Money-Back Guarantee
  • 2 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Have a coupon?

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.

About the Author

Juan Sebastian started to develop an interest in computer graphics and visualization software early in his college years, when he started to work at the virtual reality lab on a laparoscopic surgery simulator; there after he did his internship in web design, but he knew that game development was the way to go. He found web development boring, and got entry level work at a game studio as a Junior Programmer. There he started to learn Unity and work on some games, and he also started to work on side projects of his own. After he graduated, he moved to Denmark to work at Unity’s head quarters as the Doc Engineer, where he was in charge of all documentation. In this role, he created a parser to automatically translate all the examples written in JavaScript to C# and Boo. After 2 years, he moved to Chile to work in Unity as the core programmer on a marketing research simulator made in Unity. There he was in charge of all the connections and hardware interactions with the engine.

Who is the target audience?
  • 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.
Students Who Viewed This Course Also Viewed
What Will I 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
View Curriculum
  • 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
Curriculum For This Course
Expand All 40 Lectures Collapse All 40 Lectures 02:06:41
Render Loops and Basic Entry Point Functions
5 Lectures 15:36

Visualize/change data in your scripts.

Expose Variables in the Inspector from Scripts

This is the first place where code in Unity gets executed when scripting.

Entry Points when Scripting in Unity

Visualize the different usages of the render loops in Unity.

Show Different Usages of the Render Loops

Be able to do something when a collision or a trigger occurs in Unity.

Triggers and Collision Callbacks

Learn about the different callbacks that are available for the mouse when it interacts with a game object.

Special Triggers
Components – Adding, Removing, Accessing
5 Lectures 15:45

Be able to modify game object’s functionality by adding/removing Components.

Components and Their Use

Be able to call another scripts that are attached in the same game object.

Accessing a Custom Component in the Same Game Object

Be able to modify any Unity component.

Accessing a Component from the Engine Using Scripts

Be able to access and modify any component in game object from any script.

Accesing Components in Other Game Objects

Be able to access all the components in a parent and the children game objects of a game object

Searching Components in Game Objects that Have Children
Input in Unity
5 Lectures 15:44

Be able to access the Input Manager easily and know the different parts it has.

Input Manager Overview

Be able to access the Input Manager using scripts.

Connecting the Input Manager with Scripting

Be able to know when to use a button/key or when to use an axis depending on what is being programmed.

Axis, Keys and Their Differences

Know the different stages a key has and how to access them.

Dissecting Specific Key Presses – Up / Down / Stay

Know the different functions the mouse offers and how to use them in the scripts.

Mouse Input
Gizmos and Their Usefulness in Your Game
5 Lectures 15:36

Be able to know the gizmos utility and when to use it.

Gizmos Functions Overview

Be able to create custom gizmos and speed up development.

Gizmos and Scripts

Be able to visualize data from variables in custom scripts in your gizmos.

Using Gizmos for Visualizing Data

Be able to see raycasts when casting them in play mode.

Uses of Raycasting and Gizmos

Be able to intercommunicate and make gizmos react from other components.

Making Gizmos Work with Other Components
Character Controller
5 Lectures 16:04

Be able to know the values a character controller has and when/how to tweak them

Preview 03:09

Be able to use from your scripts the character controller and play with it in the game.

Preview 03:09

Be able to connect the Input Manager and make the character controller move.

Preview 03:08

Use the main camera and the character controller to quickly create a first person controller.

Creating a First-person Character Controller

Be able to create a third character controller easily and animate it on sync with the Input Manager.

Preview 03:24
GUI Scripting
5 Lectures 16:03

Be able to crate a GUI with the available controls.

GUI Overview and Types of Controls

Be able to script a custom GUI by manually placing it.

Manual GUI Placing

Be able to speed up development by letting the engine place the GUI system automagically.

GUI Layouts

Be able to mix key presses with GUI rendering without the problem of the several calls per frame on the OnGUI render loop.

Mixing the GUI System with the Input System

Be able to dress your created GUI.

Skinning Your Created GUI
Pathfinding and AI
5 Lectures 16:17

Be able to add costs to different meshes, bake meshes, and set up the basic variables when baking a mesh.

AI Pathfinding System Overview and Its Components

Be able to modify and create a NavMeshAgent component with all the variables it has.

NavMeshAgent Overview

Be able to connect different meshes with OffMeshLinks in order to make them navigable.

OffMeshLinks Overview

Be able to give life and move NavMeshAgent components and interact with the OffMeshLinks components that where exposed in the past sections.

Making the AI System Interact with Your Scripts

Be able to modify OffMeshLinks components and move different agents in the sandbox.

Creating a Basic Sandbox for Playing with Agents
Script Compilation Order and Mixing Languages in Unity
5 Lectures 15:36

Be able to execute scripts in specific order.

Script Execution Order in Unity

Know the compilation order of the Unity engine in order to be able to mix languages if necessary.

Script Compilation Order in Unity

Learn about the functions execution order in order to organize the scripts logic.

Functions Execution Order in Unity

Learn about JS and C# and their basic syntax and how to make them work in the same scene.

How to Mix Languages in Unity

Be able to call JS functions from C# code.

Calling JS Functions from C#
About the Instructor
3.9 Average rating
3,572 Reviews
29,468 Students
306 Courses
Tech Knowledge in Motion

Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.

With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.

From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.

Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.

Report Abuse