Join Sue Blackman for an in-depth discussion in this video Adding audio effects, part of Unity 3D: 3.5 Essential Training.
Now that we've had an introduction to audio, let's add some sound effects…to specific objects.…Our cannonball is a prime candidate.…Let's start by adding sound when it's fired off.…For this we need to add an audio source to the Proxy Weapon. So let's elect…our First Person Controller, Main Camera > Weapon Handler and here is our Proxy Weapon.…From Component > Audio, select Audio Source. And we need to turn off Play On Awake.…
Like before, we'll play the audio clip directly from the script, but this time we…won't tell it which clip to play in the Components audio clip parameter. Let's…go ahead and open the Projectile Script.…Double-click. It brings up the Script Editor. First we need to create a variable to…hold the audio clip.…So under my speed variable, I'll add var weaponFireFX of type Audioclip;.…
And inside the if clause where we fire the projectile we're going to add these lines.…So inside the if clause--and we can start down here. I'll tab over, and we'll a…note to ourself with our forward slashes to make a comment. Play a sound when it…
- Understanding game and level design theory
- Organizing your project in Unity
- Creating and transforming objects
- Setting up the geometry
- Painting in terrain, textures, and trees
- Adjusting the render settings
- Importing terrains
- Creating a first-person controller
- Creating materials and shaders
- Lighting the game
- Working with cameras and multiple views
- Animating characters and assets
- Creating fire with particle systems
- Managing the GUI (graphical user interface)
Skill Level Beginner
1. Exploring Unity 3D
2. Exploring the Terrain Editor
3. Creating the Environment
Publishing project settings3m 37s
4. Introducing Unity Scripting
5. In-Game Scripting
6. Working with GameObjects and Components
7. Exploring Prefabs
8. Using Imported Assets
9. Understanding Lighting
10. Keyframing Animation
11. Animating Skinned Meshes and Controlling Characters
12. Working with Cameras and Layers
13. Creating Game GUIs
14. Extra Techniques and Features
What's next1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.