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
82% off
Take This Course
  • Lectures 40
  • Length 2 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 11/2014 English

Course Description

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.

What are the requirements?

  • 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

What am I going to get from this course?

  • 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

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.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Render Loops and Basic Entry Point Functions

Visualize/change data in your scripts.


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


Visualize the different usages of the render loops in Unity.


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


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

Section 2: Components – Adding, Removing, Accessing

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


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


Be able to modify any Unity component.


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


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

Section 3: Input in Unity

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


Be able to access the Input Manager using scripts.


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


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


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

Section 4: Gizmos and Their Usefulness in Your Game

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


Be able to create custom gizmos and speed up development.


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


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


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

Section 5: Character Controller

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


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


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


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


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

Section 6: GUI Scripting

Be able to crate a GUI with the available controls.


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


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


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


Be able to dress your created GUI.

Section 7: Pathfinding and AI

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


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


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


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


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

Section 8: Script Compilation Order and Mixing Languages in Unity

Be able to execute scripts in specific order.


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


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


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


Be able to call JS functions from C# code.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Packt Publishing, 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.

Ready to start learning?
Take This Course