Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiyorin/systemvolumeplugin-for-unity
A set of tools for Unity to allow handling system volume for Android and iOS.
https://github.com/hiyorin/systemvolumeplugin-for-unity
android ios unity
Last synced: about 2 months ago
JSON representation
A set of tools for Unity to allow handling system volume for Android and iOS.
- Host: GitHub
- URL: https://github.com/hiyorin/systemvolumeplugin-for-unity
- Owner: hiyorin
- License: mit
- Created: 2018-07-29T16:43:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-02T13:04:50.000Z (almost 5 years ago)
- Last Synced: 2024-11-10T17:46:03.371Z (2 months ago)
- Topics: android, ios, unity
- Language: C#
- Size: 169 KB
- Stars: 22
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SystemVolumePlugin-for-Unity
A set of tools for Unity to allow handling system volume for Android and iOS.# Install
SystemVolumePlugin-for-Unity.unitypackage# Usage
```cs
using SystemVolume;
```#### Example: Get/Set
```cs
public void Example()
{
var controller = new SystemVolumeController();
controller.Volume = 0.5f;
Debug.Log(controller.Volume);
}
```#### Example: Callback when the volume buttons is pressed
```cs
public void Example()
{
var controller = new SystemVolumeController();
controller.OnChangeVolume = volume => {
Debug.Log(volume);
};
}
```