/SimpleSoundManager

A simple SoundManager that can be used with Unity.

Primary LanguageC#MIT LicenseMIT

SimpleSoundManager License

A simple SoundManager that can be used with Unity.
For small-scale development, basic functions are almost complete.

Update

ver1.1.0 (2018.10.21)
・On Windows, there was an error when generating the script, so it was fixed as a whole
・Fixed a bug that the value of SoundNameSE (enum) set by Inspector will be changed due to enum's order shift in "SoundName.cs" when updating music file.
・Operation check on Android, iOS
・When the set time of SE for fade in and out is longer than the sound, the part where fade processing was not working correctly was fixed.

Example

01.Example_PlaySE_2D

Image1

02.Example_PlayBGM

Image2

03.Example_PlaySE_3D

Image3

04.Example_SettingUI_Sound

Image4

Inspector

Image
Image

以下のリンクからWebGLの実行ファイルに移動出来ます。
どんな機能があるか等の確認ができます。
SimpleSoundManager_Example

Download (UnityPackage)

SimpleSoundManager(1.1.0)_IncludedExample

Function

・オーディオファイルから音楽名のリスト(string,Enum)のスクリプトの自動生成
・インスペクタ上でのテスト再生
・ボリューム変更時の自動保存

【SE】

・基本的なPause、Resume
・ボリューム指定再生
・フェードイン、フェードアウトの時間指定での再生
・回数指定のループ再生
・ピッチ指定の再生
・再生開始、終了などのタイミングでのコールバック指定
・座標指定をして3D再生
・オブジェクトに追従して再生

【BGM】

・基本的なPause、Resume
・ボリューム指定再生
・フェードイン、フェードアウトの時間指定での再生
・クロスフェードの重ねる割合の設定
・再生開始、終了などのタイミングでのコールバック指定
・イントロ曲を指定して再生

Bug

・FPSが低下した時にループ再生やイントロからメインに曲が移る時に若干遅延が発生する(ver.1.1.0)

Future

・軽量化
・UIのボタンなどを操作した時の音を簡単に設定できるように
・Timelineに対応

UnityVersion

Unity 2018.2.13f1

License

See LICENSE.