googlevr / tilt-brush-toolkit

Scripts and assets that help you use Tilt Brush data in your creative projects.
Apache License 2.0
737 stars 164 forks source link

WebGL Build and Microphone Script Issue #53

Open JohnWhallArt opened 2 years ago

JohnWhallArt commented 2 years ago

I'm struggling to build using WebGL due to the GenericAudioInput script referring to the Microphone, which WebGL doesn't support.

Example error: Assets\ThirdParty\Reaktion\Utility\GenericAudioInput.cs(69,40): error CS0103: The name 'Microphone' does not exist in the current context

I've tried #if !UNITY WEBGL code to not use this reference, as well as deleting scripts, but both come back with further errors.

Anyone know how to resolve this?

Thanks.

andybak commented 2 years ago

Hiya,

Firstly - it's better to use https://github.com/icosa-gallery/open-brush-toolkit for both code and reporting issues. While they are currently identical this repo will never be updated whilst the Open Brush one will be maintained going forward.

In answer to your question - I think we tackled this exact problem for exporting to Styly. See if this helps:

https://docs.openbrush.app/user-guide/exporting-open-brush-sketches-to-other-apps#styly

JohnWhallArt commented 2 years ago

This worked brilliantly! Thanks