Week 06: Unity Survival Game
Unit 3 · FMOD + Unity Integration · Wed Mar 4
Overview
Scripting audio in Unity with C#. Composers learn enough C# to work inside the game’s existing scripts: referencing FMOD events, triggering them on player and enemy actions (hurt, death, movement, landing), setting global parameters from game state, and using mixer snapshots. The week ends with every event in the spec wired to the game and the first parameter-driven behavior — the music and effects responding to the player’s score and health.
In Class
- Hour 1: Q&A; debugging integration problems (enemy SFX not firing, music continuing after death)
- Hour 2: C# for composers — the FMOD namespace, event references, triggering from scripts and animation events, setting parameters, snapshots
- Hour 3: Hands-on: connect the enemy events; drive
ScoreandPlayer_Health; control the mix with group buses
The Project
Resources
- FMOD Survival Shooter Unity Integration — Triggering FMOD Events within C# Scripts, Connecting the Enemy’s FMOD Events, Controlling the Mix, Controlling FMOD Events with the Player’s Health and Score
- FMOD Unity C# Scripting — parameters via sliders and toggles, mixer snapshots
- Quick Start Guide to Unity C# Scripting for Beginners
- Basic Audio Scripting in Unity with C#