I'm trying to make curtain that I can open/close in unreal engine. For now I have this: I suppose I should add cloth modifier to curtain and attach it to rings. After that I should stretch that rings and cloth will follow them. After that I'll bake the animation and export it. Unfortunately, I don't know how to do any of this things(. I created 100 loop cuts for curtain to stretch it: and the rings is the one ring with array modifier. Can you help me with details?
It looks like you can export shape keys from Blender to Unity, so you could use this method:
Create a vertex group where the curtain is hung, choose it as the pin group in the Physics panel > Cloth > Shape > Pin Group:
Then create 2 shape keys, select the second, scale down the vertices:
Create 2 keyframes on the second shape key Value, one with the value at 0, the second at 1. Enable the Object Collisions > Self Collisions option, give it a Solidify and a Subdivision Surface modifier. Here is what it gives when you play the animation: