importing flash animation inside unity

I would like to have toon style 2D animation rendered inside Unity3D and Flash is a great way to create them.

Is there a (commercial) solution to import flash vector animation inside Unity3D ?

you can not import vector animation as there is no such thing in unity

you would have to export an image based animation strip and then either switch material or use uv based image animation. the later would be doable through Sprite Manager 2

There could be, if someone made a function that converted vector animation to a mesh. That should be quite a bit faster than anything image-based, and it would be resolution-independent.

–Eric

It will take less VRAM, agreed, and it will scale but it will be far from faster as vector animation would mean mesh based morph animation, so it has to generate meshes for each potential or not so potential “keyframe” to morph correctly.

What about something that converts the spline animation into image - on the fly with some shaders ?

That depends on the complexity of the vector animation. If you’re pre-rendering the animation to frames, the complexity isn’t an issue, but you’re extremely limited in the size and number of frames you can use.

If you’re running the vector animation dynamically, using textures means you have to first rasterize to a texture, then upload it, which is very slow for full-screen size textures. You can increase speed by using small texture sizes, but then it will look bad if scaled up to any significant degree.

If you’re using meshes, the speed is limited by the complexity of the vectors and the efficiency of your triangulation algorithm. By pre-computing key frames and morphing between these, though, you can far outpace the speed of the texture method, and it will perform and look the same at any resolution.

–Eric

wow that sounds complicated :frowning: