Click or drag to resize
AudioPlayerPrefs Class
Uses Unity PlayerPrefs for toggling sound and music.
Inheritance Hierarchy
SystemObject
  Slash.Unity.Common.SoundAudioPlayerPrefs

Namespace: Slash.Unity.Common.Sound
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public class AudioPlayerPrefs

The AudioPlayerPrefs type exposes the following members.

Constructors
  NameDescription
Public methodAudioPlayerPrefs
Initializes a new instance of the AudioPlayerPrefs class
Top
Properties
  NameDescription
Public propertyStatic memberPlayMusic
Whether to play background music.
Public propertyStatic memberPlaySound
Whether to play sound effects.
Top
Events
  NameDescription
Public eventStatic memberPlayMusicChanged
Music has been turned on or off.
Public eventStatic memberPlaySoundChanged
Sound effects have been turned on or off.
Top
See Also