hi i'd like to have a flash/flex app coexist with a unity app on one web page and have the flash/flex app to style a texture according to user input. then have the customized texture being applied to a unity model at runtime. how can that be done?
Answer by jonas echterhoff
Nov 18, 2009 at 10:44 AM
Either that, or upload the texture to a server, and download it from Unity (which would be a waste of bandwidth, of course).
jonas, thanks for the hint. you say "in theory". do you consider this approach to be a practical approach as well?
Yes, it should be practical, unless you require some high texture bandwidth - ie, it would certainly be to slow to stream a movie from flash to unity, because of all the overhead involved. Plus, I never tried it myself, so you never know what kind of fun challenges you run into :)
Answer by Kuba
Nov 18, 2009 at 01:19 PM
Answer by PaulT
Nov 18, 2009 at 09:33 PM
This is something that I want to find out, but never got the time and need to do it. I think the way to go is to use Base64 encoding and decoding.
[update] Just saw that my last suggestion was already given.
Answer by burnumd
Jan 28, 2010 at 09:14 PM
Be aware, though, that to load a file directly from Unity, you'd have to serialize it as a string and recreate it in Unity or have your Flash/Flex store the image somewhere accessible and pull it down in Unity using the www class.
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 post good questions and use the site effectively we have posted a user 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.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
Mac webplayer graphic glitch
Why can't I build Web Player in Unity while I have no problems with building standalone versions?
No Anti-Aliasing in webplayer
How to correctly size Unity web player using aspect ratio?
Bug or better way? web player crashes/hangs if sending WWW OnApplicationQuit