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
$19
$85
78% 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

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

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

What 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.

Curriculum

Section 1: Render Loops and Basic Entry Point Functions
02:57

Visualize/change data in your scripts.

03:11

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

03:06

Visualize the different usages of the render loops in Unity.

03:12

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

03:10

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

Section 2: Components – Adding, Removing, Accessing
03:25

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

03:01

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

03:09

Be able to modify any Unity component.

03:05

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

03:05

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

Section 3: Input in Unity
02:56

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

03:12

Be able to access the Input Manager using scripts.

03:08

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

03:05

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

03:23

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

Section 4: Gizmos and Their Usefulness in Your Game
03:13

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

03:03

Be able to create custom gizmos and speed up development.

03:03

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

03:10

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

03:07

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

Section 5: Character Controller
03:09

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

03:09

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

03:08

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

03:14

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

03:24

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

Section 6: GUI Scripting
03:01

Be able to crate a GUI with the available controls.

03:33

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

03:11

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

03:10

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

03:08

Be able to dress your created GUI.

Section 7: Pathfinding and AI
03:12

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

03:09

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

03:17

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

03:09

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

03:30

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

Section 8: Script Compilation Order and Mixing Languages in Unity
03:09

Be able to execute scripts in specific order.

03:02

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

03:11

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

03:13

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

03:01

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

Over the past ten years Packt Publishing has developed an extensive catalogue of over 2000 books, e-books and video courses aimed at keeping IT professionals ahead of the technology curve. From new takes on established technologies through to the latest guides on emerging platforms, topics and trends – Packt's focus has always been on giving our customers the working knowledge they need to get the job done. Our Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.

Ready to start learning?
Take This Course