Skip to content

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

License

Notifications You must be signed in to change notification settings

hiyorin/SystemVolumePlugin-for-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
  };
}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published