Giter VIP home page Giter VIP logo

audio-pool-manager's Introduction

Audio-Pool-Manager

Plays audio using an audio source object pool.

How to install

This package can be installed through the Unity Package Manager with Unity version 2019.3 or greater.

Open up the package manager Window/Package Manager and click on Add package from git URL....

unity_package_manager_git_drop_down

Paste in this repository's url.

https://github.com/Jason-Skillman/Audio-Pool-Manager.git

unity_package_manager_git_with_url

Click Add and the package will be installed in your project.


NOTE: For Unity version 2019.2 or lower

If you are using Unity 2019.2 or lower than you will not be able to install the package with the above method. Here are a few other ways to install the package.

  1. You can clone this git repository into your project's Packages folder.
  2. Another alternative would be to download this package from GitHub as a zip file. Unzip and in the Package Manager click on Add package from disk... and select the package's root folder.

Git submodule

Alternatively you can also install this package as a git submodule.

$ git submodule add https://github.com/Jason-Skillman/Audio-Pool-Manager.git Packages/Audio-Pool-Manager

How to setup

You can create a new AudioManager and add it to your scene by right clicking in the hierarchy Audio/Audio Manager. Only one AudioManager should exist within any given scene.

Audio components

Play Audio component

play_audio

Member Description
Audio Clip The audio clip to play.
Audio Config The audio configuration file to use when playing the audio.
Use 3D Position Is the audio playing is 3D space? Uses this gameobject's location.

Play Audio Random component

play_audio_random

Member Description
Audio Clips Randomly chooses an audio clip to play from the array.
Audio Config The audio configuration file to use when playing the audio.
Use 3D Position Is the audio playing is 3D space? Uses this gameobject's location.

Both components can trigger its audio clip by calling Play() in a UnityEvent or by another script. This method is also avilable in the context menu for debugging in the editor.

Audio Configuation

AudioConfiguation is a scriptable object filled with common audio settings.

To create a new AudioConfiguation settings file go to Create/Audio/AudioConfiguation.

audio-pool-manager's People

Contributors

jason-skillman avatar

Stargazers

 avatar  avatar

Watchers

 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.