Unity 3.x Scripting

More Information
  • Use available scripts that readers can use to create default character controller
  • Attach default character controller scripts to an existing game object
  • Set-up your own camera and character controller rigs through code
  • Code dynamic and static objects like bio gun, ammo, health, character stat augmentation, treasure chests and make your character interact with them
  • Create character item slots along with inventories, where players will be able to drag and drop different item icons in the inventory slots
  • Attach existing animation scripts to characters and objects and create new ones
  • Assign and equip selected items on a player or object, making them active and useable like adding fire functionality to a bio gun
  • Create and maintain scores to control character objectives and save game data
  • Setup a system to control transition between scenes and transferring objects from one scene to another along with instantiation for characters
  • Deal with 2D and 3D parallax backgrounds
  • Create an audio game controller to fix sound overlapping and create background audio stems
  • Basics of enemy AI, such as path-finding and creating distinct enemy behavior and their awareness



Unity is a powerful tool for anyone who aspires to build interesting and sellable games. One of the exciting aspects of Unity is how easily it can be extended to build custom characters and game environments. Scripting is the key to accomplish all this, but it comes with a steep learning curve.

This book will teach you everything you need to know about scripting in Unity. It will take you through creating, including and tweaking scripts for achieving various tasks. Some of these tasks include controlling characters, animations, controlling objects, handling game data and enemy AI.

The book will begin by building scripts for simple tasks and continue to develop them for increasing level of difficulty. The first few chapters include scripting to build a custom game environment and creating characters and controlling them. Arranging camera views, controlling and creating animations are covered in the next set of chapters.

The book then moves on to build objects, animate them and code character interaction with them and create inventories where the characters can pick ammo, health and other such objects. Towards the end, the book teaches how to add background sound and discusses basic enemy AI scripting.

  • Make your characters interact with buttons and program triggered action sequences
  • Create custom characters and code dynamic objects and players’ interaction with them
  • Synchronize movement of character and environmental objects
  • Add and control animations to new and existing characters
  • Written in simple and step-by-step format with real life examples, this book is the only one in the market to focus on Unity Scripting


Page Count 290
Course Length 8 hours 42 minutes
ISBN 9781849692304
Date Of Publication 24 Jun 2012


Volodymyr Gerasimov

Volodymyr Gerasimov is a game designer, developer, and producer who has worked on multiple titles in companies such as Holymountain Games, Best Way Soft, and Gameloft. Being introduced to Unity in its early versions, he continues to use and explore it to this day as a powerful, flexible, and affordable solution for personal projects and independence start-ups. His previously co-authored Unity 3.x Scripting, Packt Publishing. You can follow Volodymyr on his personal blog at blog.vladgerasimov.com.

Devon Kraczla

Devon Kraczla is an independent Game Developer. Having an artistic background Devon came to the gaming industry to explore new ways to surprise people with his creations. Over the last few years, having graduated from The Art Institute of Vancouver, Devon developed multiple independent projects, both solo and with other enthusiasts. In his games Devon focuses on simple and engaging game mechanics covered in unique art style that makes his games appealing for hardcore and casual audiences. Currently Devon is working on a new project in a large group of passionate developers.