- Home /
Edit detail layer of terrain at runtime
So I'm making a game where as the player walks across the terrain, the grass (the default 2d grass from the terrain builder) below him disappears. I have no idea how to go about this and any help would be appreciated!
Answer by jni97 · Jul 12, 2015 at 09:34 AM
http://docs.unity3d.com/ScriptReference/TerrainData.GetDetailLayer.html
This is that you need. The example is nearly perfectly for you, you have just to adjust the position
Your answer
Follow this Question
Related Questions
Detail mesh pipeline 1 Answer
Grass texture transparancy Terrain not working 0 Answers
Does the grass texture I add effect detail meshes that have the render mode "grass"? 0 Answers
Culling Terrain detail objects by layer 0 Answers
Culling low grass details on terrain (detail distance issue for not tall details) 0 Answers