# Juce w/ Unity questions

**URL:** <https://forum.juce.com/t/juce-w-unity-questions/49439>\
**Category:** General JUCE discussion\
**Created:** [December 29, 2021, 8:29pm UTC](https://forum.juce.com/t/juce-w-unity-questions/49439 "2021-12-29T20:29:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlaroche](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nlaroche/32/8260_2.png) [@nlaroche](https://forum.juce.com/u/nlaroche)\
**Post date:** [December 29, 2021, 8:29pm UTC](https://forum.juce.com/t/juce-w-unity-questions/49439/1 "2021-12-29T20:29:20Z")

</div>

I’m really intrigued by integrating juce with Unity and I had a couple questions:

1. Is it possible for Juce to completely own the audioDeviceCallback? That’s to say, I would like to use the juce audio device component to manage the devices / samplerate / midi, etc. EDIT: Think I figured this one out too… just create a juce dll that will go do the audio callback stuff as usual and import into unity - then, disable the audio for the project in unity…

2. Is it possible to trigger Juce UI elements within a Unity context? Example, have juce open a DocumentWindow and do its own rendering based off of a trigger in the unity scene? EDIT: Just got this to work 🙂

I’ve played a bit with it and have integrated my plugin and I’d really like to see how far its possible to push this.

Any info or help appreciated! Thanks

---

<div class="post-metadata">

**Author:** ![SourGummi](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@SourGummi](https://forum.juce.com/u/SourGummi)\
**Post date:** [December 30, 2021, 6:31am UTC](https://forum.juce.com/t/juce-w-unity-questions/49439/2 "2021-12-30T06:31:17Z")

</div>

Honestly, I have no idea with unity seeing as it uses C#. But unreal engine is open sourced and C++, so you have many more options with that. Sorry!

---

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [December 30, 2021, 11:16am UTC](https://forum.juce.com/t/juce-w-unity-questions/49439/3 "2021-12-30T11:16:29Z")

</div>

@SourGummi Unreal is not really open source as it has its own proprietary license and set of restrictions. I can’t remember the ins and outs of it all, but I think Unity offers the same flavour of license, i.e, you can access the source code, but there are certain caveats on its use.

---

<div class="post-metadata">

**Author:** ![nlaroche](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nlaroche/32/8260_2.png) [@nlaroche](https://forum.juce.com/u/nlaroche)\
**Post date:** [December 30, 2021, 3:02pm UTC](https://forum.juce.com/t/juce-w-unity-questions/49439/4 "2021-12-30T15:02:13Z")

</div>

I don’t think I’ll need the source code for anything, for my particular use case if I can get audio working and get a handle for the OS windows on pc/mac I should be good to go.
