How to export your Ocean Modifier Mesh and Animation to Unity? | Blender v2.80.72 /*Edited: For Blender 2.7 Users I found a detailed articel with pictures. */

I want to build an VR-Scene in Unity with a little Island and and ocean around.


For the ocean I am quite happy with the ocean modifier and made already an looping animation with the water.

animation Gif

But I simply cannot find a solution to export the mesh + animations to Unity. I keyframed the time and scale and found the problem, that these can't update when I apply the modifier. To my understanding blender needs to apply the modifier when exporting, so I can even get the shape of Ocean.

[

I tried and failed with this explanation.

Could somebody please give me an more beginner friendly explanation?

Here is my blendfile:
google drive link
I used the official Blender 2.8 release and it works fine.

What to do:


Select your 'Ocean Object' and press ctrl + a to apply the scale.
With your object selected click file -> export -> Lightwave Point Cache (.mdd)
Save the mdd file.
Apply your ocean modifier
With the object selected click import and import your mdd file again.


The whole process takes only seconds now.