Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CAMOBAP/UnityVolumeButtons

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unitypackage

Unity3d VolumeButtonsPlugin

This plugin was developed for Unity3d Android & iOS platforms to be able listen for Volume up/down button clicks, it doesn't override them

Implemented buttons:

  • Volume Up
  • Volume Down
  • Mute

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Unity3d 2019.x

Installing

To install this pulgin:

  • Copy Assets/Plugin/VolumeButtonsPlugin into your project
  • Make sure that you updated activity name to org.camobap.unity3d.VolumeButtonsActivity in your Assets/Plugin/Android/AndroidManifest.xml*
  • For iOS add MediaPlayer.framework
  • If you already have another custom activity there, please change parent UnityPlayerActivity in VolumeButtonsActivity.java to yours one or vice-versa

Running the tests

Test app have two blinking Panels

Usage in your apps

For your propose you can define fuction with signature below:

    ...
    
    public void HandleVolumeButton(VolumeButtonsEventType e)
    {
        ...
    }

And attach it to VolumeButtons.cs component

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Simple plugin which allows to listen for volume up/down buttons for iOS & Android platforms

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.