SystemVolumePlugin-for-Unity icon indicating copy to clipboard operation
SystemVolumePlugin-for-Unity copied to clipboard

A set of tools for Unity to allow handling system volume for Android and iOS.

SystemVolumePlugin-for-Unity

A set of tools for Unity to allow handling system volume for Android and iOS.

Install

SystemVolumePlugin-for-Unity.unitypackage

Usage

using SystemVolume;

Example: Get/Set

public void Example()
{
  var controller = new SystemVolumeController();
  controller.Volume = 0.5f;
  Debug.Log(controller.Volume);
}

Example: Callback when the volume buttons is pressed

public void Example()
{
  var controller = new SystemVolumeController();
  controller.OnChangeVolume = volume => {
    Debug.Log(volume);
  };
}