I have certain plants that i designed, textured, and imported into the basic unity terrain engine. i then painted as i saw fit, and yadda yadda. The problem is that the prefabs of said plants have an audio source that works when placed, but not terrain painted. is there a scripting option for me to implement to fix this, and gain a sound from the terrain placed models? furthermore could i get the grass to sing? (trippy project)
1 Answer
1One way to do it would be to get the texture of the grass that you’re stepping on, check Terrain with multiple splat textures - how can I detect which kind is under my character's location? - Unity Answers for more information.
You would then have to write a script to play certain audio based on the texture.