Skip to content

tgraupmann/UnityWebGLMicrophone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityWebGLMicrophone

WebGL Microphone module for Unity

image_1

This package provides a WebGL module that allows the UnityEngine.Microphone API to be used on the WebGL with the sample interface.

That is, with one exception as the following script is needed in the scene to relay Microphone updates from WebGL to C#.

#if UNITY_WEBGL && !UNITY_EDITOR
        void Awake()
        {
            Microphone.Init();
            Microphone.QueryAudioInput();
        }
#endif

#if UNITY_WEBGL && !UNITY_EDITOR
        void Update()
        {
            Microphone.Update();
        }
#endif

About

WebGL Microphone module for Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published