What is the best way to make caves in unity? Like I have an island… and want to make a cave that goes actually underground like a mine… Its not possible to dig down in unity… so I could use another scene that loads when i go in the cave opening… but have anyone done that? So its not so obvious… smooth loading and monsters follow… and so inside can be seen from outside and otherway around… how is this done in unity?
I’m currently using a terrain shader with transparency plus a bunch of scripts to enable/disable collisions depending on objects as they transition through holes. It works, though between the fiddliness of the scripts/triggers/hole painting and the more expensive shader that’s required, it’s not ideal on the whole.
My next thought is to convert my terrains to meshes and then cut holes in the geometry.
From the top of my head I have a couple of solutions:
You can load scenes on top of each other and everything from both scenes is keep, so when player collides with X you load next scene and unload others to improve frame rate.
The documentation is linked. It’s all useful stuff, but none of it is about the part where you need a hole in terrain.
Note that Unity’s terrain tools aren’t the only way to render ground. You can always make meshes of the terrain you want and use those instead. It’s less efficient in some ways, but better in others. For instance, if you need a hole you can just delete some faces.