Save a script created mesh as mesh

Hey,
i created mesh with script, but the mesh is only visible at runtime, do you have an idea how i can make the mesh always visible( laso in editor screen).

Thanks for any help.

I had the same problem and found the answer here.