I searched for a good terrain system and found Map Magic. I started changing the placing object behavior so it can now be used on terrain with different heigh (and not only on a flat one).
I also added a way to more easily place these flat walls near and on top of each other with a clamping system:
Then I tried to add a floor placing system. At first I didn’t have any issue but when I wanted to flatten the terrain around the floor tile I had some issue with Map Magic, mainly because I don’t have too much experience on this.
So in order to be more efficient I finally put Map Magic away for the moment on relied mainly on the terrains system which already exist in unity. It will be probably slower to create the terrain that I want but I least I am more at ease with this one.
And after some coding I were able to have a system that suit my needs: clamp & flattening!
I will need to make some minor adjustements but at least it works as attended!
In the future I would like to add a “cost” depending on the flattening needs, so the player can’t flatten anything anywhere without specific resources. But that would be for another time, maybe!
And the finishing touch was to clamp the walls to the floor: