- Home /
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
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? thanks, 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.
Your answer
![](https://koobas.hobune.stream/wayback/20220613162510im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Web-project "Session End" 0 Answers
Once Unity loads (Web player) how do I prevent it from being *Focused*? 0 Answers
Out put data from web version 2 Answers
www.texture different in editor and on webplayer 1 Answer
How to pass variables to my WEBapp through the html provided after building the app? 1 Answer