x


integrate unity with flex web app

how can i integrate unity 3d with my flex application? how can i show a flex gui in front of a unity 3d scene? overlay? fullscreen? how can i synchronize unity and flex logic? how can i create a texture in flex at runtinme and immediately use it within unity? thanks for any ideas, flexrails

more ▼

asked Nov 17 '09 at 08:59 PM

flexrails gravatar image

flexrails
751 30 36 55

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

1 answer: sort newest

There is an open source project called u3dobject, which is a good start for communication between Unity and Flash/Flex. Details about this project can be found here: http://code.google.com/p/aquiris-u3dobject/

Having a Flash overlay is not possible. You could have Flash elements on the page and let it communicate with Unity. In case Flash/Flex is part of your application, going fullscreen is a problem, as you can only go fullscreen with your Flash application OR Unity application. Both is not possible.

Without the u3dobject you can have communication between Unity and Flash elements. Check the documentation for this: http://unity3d.com/support/documentation/ScriptReference/Application.ExternalCall.html or a blogpost that I wrote a while ago: http://www.paultondeur.com/2008/11/12/unity3d-communication-with-browser-and-flash/ (including some examples of what could be possible).

I highly recommend using u3dobject.

more ▼

answered Nov 17 '09 at 10:17 PM

PaulT gravatar image

PaulT
95 2 2 6

thanks for your competent answer. so that would mean i can have flex and unity apps side by side on one page, but not overlapping - correct? can i resize the unity viewport at runtime? thanks, flexrails

Nov 17 '09 at 11:17 PM flexrails

That is correct! Also resizing the size of the viewport is possible by adjusting the width and height properties of the element on the page.

Nov 18 '09 at 09:19 PM PaulT
(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:

x1052
x246

asked: Nov 17 '09 at 08:59 PM

Seen: 3040 times

Last Updated: Nov 17 '09 at 08:59 PM