- Home /
Can Terrain Placed objects play certain sounds?
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)
Answer by Christian.Tucker · Oct 17, 2014 at 09:11 AM
One way to do it would be to get the texture of the grass that you're stepping on, check http://answers.unity3d.com/questions/34328/terrain-with-multiple-splat-textures-how-can-i-det.html for more information.
You would then have to write a script to play certain audio based on the texture.
Your answer
Follow this Question
Related Questions
My grass looks really weird. 0 Answers
Adding trees dynamically 1 Answer
Adding trees dynamically - part 2 (the mission) 1 Answer
Hide Grass and Trees applied to terrain? 2 Answers
grass and tree culling 5 Answers