Skip to content

Instantly share code, notes, and snippets.

@cerkut
Last active November 9, 2018 09:35
Show Gist options
  • Save cerkut/45a791b12525de7290654d6814e60008 to your computer and use it in GitHub Desktop.
Save cerkut/45a791b12525de7290654d6814e60008 to your computer and use it in GitHub Desktop.
JUCE to Unity Native Audio Plugin on Mac :GIST:CODE:

A. Checkout the developer version of JUCE

git clone -b develop https://github.com/WeAreROLI/JUCE.git 

(For consequent updadets, you just need to)

git checkout develop; git fetch; git pull

B. Build Projucer, where JUCE is the root of your clone

xcodebuild -project JUCE/extras/Projucer/Builds/MacOSX/Projucer.xcodeproj 

b. Optionally build DemoRunner and AudioPluginHost

xcodebuild -project JUCE/examples/DemoRunner/Builds/MacOSX/DemoRunner.xcodeproj 
xcodebuild -project JUCE/extras/AudioPluginHost/Builds/MacOSX/AudioPluginHost.xcodeproj

C. Open Projucer, Sign-in, complete settings

(optionally install clion)

brew cask install clion

D. Create an Audio Plug-In in JUCE, set Project Settings/PluginFormats to Unity, compile (check Builds folder to see Debug plugins)

E. On Unity, create an empty project, copy the plugin as an asset, add to an AudioMixer and route a GameObject (AudioSource), as described here (Step 3).

F. Run, you should see the JUCE UI in Unity.

G. See more at

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment