Hi there,
I want to create a platformer game where the player is moving on arbitrarily shaped platforms (2D). I have already written a script that creates a custom mesh with a couple of vertices and triangles and it works quite well.
But I would like to use the unity editor, to design the levels. However those platforms are built up with custom vertices and so they are not visible in the editor. They only get visible, if I start the game.
Do you have any idea how I could design the level within the unity editor? Because designing a level only using vertices gets rather annoying. It would be okay, if I could see the changes immediately after changing the values in the script.
But always stopping, changing, starting, playing the game is quite slow and annoying.
So is there any possibility to create objects in scripts for the editor (a special method that is called for rendering an object in the editor). So I would be able to show a preview of my object in the editor view. Or is there any kind of polgyon drawing tool for the editor, so that I have at least the shape rendered and I take the vertex values of this editor polygon and build up my game polygon from it.
Thank you for your help in advance. I was not sure where to put this topic, because it depends on the solution sthat exists.