Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering Unity 5.x

You're reading from   Mastering Unity 5.x Create amazing games with brilliant game play features using Unity 5.x

Arrow left icon
Product type Paperback
Published in Jan 2017
Publisher Packt
ISBN-13 9781785880742
Length 592 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alan Thorn Alan Thorn
Author Profile Icon Alan Thorn
Alan Thorn
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Mastering Unity 5.x
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Preparation and Asset-Configuring 2. Level Design and Structure FREE CHAPTER 3. Player Controls - Movement 4. Player Controls - Typing and Health 5. Enemies and Artificial Intelligence 6. Project Management and Version Control 7. Persistent Data - Load and Save Game States 8. Performance, Optimization, Mobiles, and More

Music and audio


To complete basic level configuration and structure, let's add music. Specifically, the main background music, which should play continuously throughout the level. In the previous chapter, we imported audio assets, both music and sound effects, and configured these optimally. As discussed previously, it is most important that music is configured for Streaming as the Load Type, and the Compression Format should be set to Vorbis. This ensures that Unity doesn't load the complete track into memory, which would be performance prohibitive, especially for mobile devices and legacy hardware.

Configuring music audio

In addition to importing music assets, let's create an Audio Mixer asset. This is optional in theory, as Unity can play audio without a mixer. But mixers give you more control over different audio types and their independent volumes and balance (SFX, music, voice, and more). To create an Audio Mixer asset, right-click inside the Project panel and navigate to Create |...

You have been reading a chapter from
Mastering Unity 5.x
Published in: Jan 2017
Publisher: Packt
ISBN-13: 9781785880742
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images