|Line 17:||Line 17:|
Revision as of 16:03, 6 December 2006
Author: Jonathan Czeck
This plugin provides a starting grounds for audio input in Unity. It computes the volume of the default audio input (set in Mac OS X System Preferences) every FixedUpdate.
Use this to, for example, apply force to boxes in front of a player in a first-person game when the player blows into the microphone. Another possibility would be to have in game characters react to when a player makes a sound in real life.
The second download contains the full Unity project (with the assets in the .unityPackage above) and an Xcode project with the plugin source code.
After you have imported the plugin into your Unity project using Import Package, you may now write scripts in any language that simply use AudioInput.Volume. Experiment around and share cool ideas you've come up with using this plugin on the forum or IRC channel!