O'Reilly logo

Game Development with Unity®, Second Edition by Bryan Wagstaff, Michelle Menard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 9USING TRIGGERS AND CREATING ENVIRONMENT INTERACTIONS

Triggers and other forms of environment interactions form an important part of environment and game design. They help create moving doors as well as pickup items, puzzles, traps, and all sorts of pieces not directly controlled by enemy artificial intelligence (AI). Setting up a trigger in Unity is as simple as setting up a collision mesh.

Triggers allow for an infinite number of possible events for your players to experience and explore. Your gameplay doesn’t have to revolve around enemies and combative interactions; indeed, many successful games are solely based on unique and interesting environment puzzles and interactions. Learning to effectively use and manage triggers will open ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required