I recently started learning how to make terrains in unity so I might be missing a few things…
I got a tree asset from the Rocky Hills Environment Light Pack and I used a tree which already had a mesh collider attached. When I manually placed it in the scene the collider worked fine but when I added it using terrain tools there was no collider. I tried using one method from an older question like this (terrain.GetComponent().active = false; terrain.GetComponent().active = true;) but apparently active isn’t an attribute, has it’s name changed? How do I fix this?
if the prefab has collider attached (make sure you use prefab not the model only) you have to just check under terrain settings that tree colider is checked. Works fine for me.
This does not work fine for me and a lot of other people. I am using unity 2019LTS. All of my tree prefabs have colliders and not a single one actually works when you place the trees with Mass placement. There must be a setting that needs to be checked other than use colliders?