x


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?

more ▼

asked May 31 '11 at 11:08 PM

raccit gravatar image

raccit
16 2 2 2

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Jun 01 '11 at 05:26 AM

yoyo gravatar image

yoyo
6.4k 25 39 84

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?

Jun 01 '11 at 01:20 PM raccit

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.)

Jun 01 '11 at 02:29 PM yoyo
(comments are locked)
10|3000 characters needed characters left

No - Unity is an application done mainly in c++, can't work really, it's not an sdk alone

more ▼

answered May 31 '11 at 11:21 PM

Mike 3 gravatar image

Mike 3
30.5k 10 65 253

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x4167
x171
x51

asked: May 31 '11 at 11:08 PM

Seen: 868 times

Last Updated: Jun 01 '11 at 02:29 PM