Cloth simulation for game engine doesn't get animated despite Shape Keys have been created I’ve been exploring and fighting this problem for a few weeks with no result and I’m really out of ideas.

I have to create a character (to import to Xcode). It is a standing in place ghost with its 'cloth' just waving in a loop (I used wind force). The only element I need to export is a waving cloth. I have prepared the simulation, baked it, exported as .mdd, imported the .mdd to obtain Shape Keys, removed irrelevant elements (incl. cloth modifier) and… I am not able to turn it into animation… 

At first I presumed it’s an export problem (I posted Exporting cloth simulation to Collada results in static cloth instead of a waving one ), but then I realized that it’s not - the object is static and there is no animation. 

I have proper Shape Keys but no idea how to push them run as animation. I have tried different methods to link Shape Keys to actions - still I’m not sure whether it is the core problem. I have added armature then run a script to create drivers between Shape Keys and Armature (as in https://blenderartists.org/forum/showthread.php?325838-How-to-convert-a-cloth-simulation-animation-to-keyframes and here https://blenderartists.org/forum/archive/index.php/t-261576.html and How to convert cloth simulation into mesh animation? ). I manually added an action to the Cloth, but I don’t know whether it was needed. I don’t even know if there has been established any relation between Shape Keys and any action. I have applied Object transform (scale, rotation..) - no result… This How to export a scene with Shape Keys Animation? also doesn't work for me...
This one Create ghost character from a certain point in cloth simulation is also not a solution - at the end there is again cloth modified added. I see there are few threads that might be related to mine but they remain unsolved. 

Here the pain blend can be downloaded https://files.fm/u/sm2gkvv5

I export Collada and .blend to Unity for testing - there is an animation (I see frames running) but the cloth is static - not deforming.  

I guess the solution must be very simple (I am a newbie) or there is a bug… Maybe anyone can help and tell me what is missing? There must be a way to export characters with animated cloth to game engines!… 

I’m using Blender 2.79.
Maybe Unity is importing the .fbx from the .blend in wrong ways (Unity imports .blend files as .fbx under the hood).
I downloaded your .blend file, exported manually to .fbx and I can see the cloth waving in Unity3D.

I'm using Blender 2.79 and Unity3D 2017.3.0f2.

Try as follows:


In Object mode select both mesh and armature





Select File -> Export -> FBX
Disable Add Leaf Bones





Import the .fbx file into Unity


Animations in action