Deform, skew a mesh in editor mode

Hi,

i am searching for a script to skew a mesh in editor.

I must build a huge variety of building and i decided to make several pieces (walls, floors, wall corners, etc.) to assemble directly in Unity in different ways. I think this is a typical approach.

But i’d like also to have the possibility to make walls with different angles, and this could be a problem expecially with roofs and floors.

I imagine a script that calculate the bounding box of given pieces and allows to “strech” corners on X,Z coordinates.
I am aware of plugin like Mega Fiers that can do that, but it simply do too many thing that i don’t need at all.

Is it possibile?

If you’re new to editor scripting and editing meshes, this tutorial might help you understand how to generate a mesh and write a custom editor to modify it.

Thank you very much. This is what i was looking for.