I have Tree prefabs painted on terrain, each of which have a capsule collider and are assigned to a different layer (ID 9), which I am trying to detect in code upon collision.
The collision works, however the Trees are displaying the layer of the Terrain (0) instead of the Tree prefab (9) using the following code:
Same issue. I am trying to create a terrain paging system for a large world and every time a tree becomes a mesh tree or transitions to a texture it triggers the OnTriggerEnter and OnTriggerExit events causing terrain chunks to load in or out when they aren’t supposed to since they have the same layer as the terrain.