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,
Answer by PaulT
Nov 17, 2009 at 10:17 PM
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.
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?
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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
No one has followed this question yet.
Weird screen corruption in web build?
Multiple pages Unity Webplayer
What is the maximum byte length of Application.ExternalCall? (and oh yea, it doesn't escape strings correctly)
Unity Web Player on Web