GithubHelp home page GithubHelp logo

soundmanager's Introduction

SoundManager

Easy ways to manage your audio game on unity3D

Getting Started

Import package, drag and drop SoundManager.prefab to your very first scene loaded. Open / Click SoundData.asset (found at SoundManager/Resources), and configure / drag and drop your audio asset to inspector.

Note : Add your scene to Build Settings, scene info on SoundData.asset is take from Build Settings

SoundManager

  1. Auto Change BG Music : auto change the background music when loaded new scene.
  2. Restart BG Music When Loaded : restart the music when loaded new scene, this option is only when you want to restart the same audio clip
  3. Sound Fx Source Size : Sound FX pooled gameObject created at the very first.

Code Guidelines

  1. SoundManager.instance.ChangeBackgroundMusic(string id) : call when you want to change the background music, string id is scene name.
  2. SoundManager.instance.ChangeBackgroundMusic(AudioClip clip) : call when you want to change the background music
  3. PlayClip(string id, Vector3 position) : playing a sound FX with a specific position. Only used for 3D. string id is pre-cofigured on GameData.asset
  4. PlayClip2D(string id) : playing a sound FX with 2D blend, string id is pre-cofigured on GameData.asset
  5. PlayClip2D(AudioClip) : playing a soundFX with 2D blend

Musics credits to

Cheer up (PSG Version) : Snabisch

soundmanager's People

Contributors

damarindra avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.