Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411423 Posts in 69363 Topics- by 58416 Members - Latest Member: JamesAGreen

April 18, 2024, 05:13:01 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityTownhallForum IssuesArchived subforums (read only)TutorialsUsing Singletons for Sound Management
Pages: [1]
Print
Author Topic: Using Singletons for Sound Management  (Read 1248 times)
Fufanu
Level 0
**


View Profile
« on: May 01, 2016, 02:13:48 PM »

Hey guys and gals, I wrote a tutorial on using singletons for sound management in unity.  You can check it out here
http://huntingtongames.xyz/2016-05-01-unity-using-singletons-for-sound-management/
Logged
Michael Klier
Level 1
*



View Profile WWW
« Reply #1 on: May 01, 2016, 11:05:41 PM »

Thanks for the article. For SFX this seems to be an interesting solution for smaller scale 2D games when the positioning of individual sounds (and attenuation curves etc. pp) is not really important because they share the same AudioSource (hmmmm, well, is it really not important :]?). I think a persisent music manager makes for a better case for using a Singleton. Good stuff!!
Logged

Sound Design, Audio Implementation, Music
Reel Twitter
Working on

Fufanu
Level 0
**


View Profile
« Reply #2 on: May 07, 2016, 12:28:08 PM »

thanks a lot and I totally agree.  Singletons can be troublesome, but they most definitely have a use in your toolbox when used properly(aka not as a glorified global!)
« Last Edit: May 07, 2016, 03:03:29 PM by HuntingtonGames » Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic