- Home /
launch unity within a c# shell?
is there a way to have a standalone c# exe launch a unity game not as a separate process but within itself?
Answer by Mike 3 · May 31, 2011 at 11:21 PM
No - Unity is an application done mainly in c++, can't work really, it's not an sdk alone
Answer by yoyo · Jun 01, 2011 at 05:26 AM
If you turn your problem on its head there may be a solution -- instead of embedding a Unity game inside your standalone C# app, you could embed your app inside a Unity game. You can build a standalone executable using Unity, and you can use Mono to integrate pretty much any .NET DLL you want, including those you've built externally. You'd have to jump through some hoops to get your Unity game to appear in a window inside your app though, not sure how that would work.
Alternatively, you could build your Unity game as a web player, and then embed a web browser window inside your app and host the Unity game there. This might be a better solution.
Let us know if it works, it's an interesting challenge.
unfortunately I can't do it the other way around as I'm using the other app to download the unity project and then launch it might this work with the web player?
Try googling for "c# embed web browser" -- I think it's relatively easy. (I once worked on an app that included an embedded web browser, though I didn't work on that area.)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
Printing in Unity 1 Answer