Quantcast
Channel: Latest Questions by greatUnityGamer
Viewing all articles
Browse latest Browse all 99

How do i add all the sounds for my character through a script, instead of using the Inspector?

$
0
0
Unity 5.3.5. I want to just load sounds and play through a script that searches for the sound you give it, in the Assets folder's folder that you specify. for example play(scream.mp3 from folder Assets/Human Sounds); Is that possible to do ? or do you have to always have the sounds loaded into fields in the inspector tab. Reason i'm want to do it like this is because i'm loading characters(planning and learning how)into scenes by script selecting random or particular characters. So it's not like i'm manually dragging the characters into the scene. Thanks for your help

Viewing all articles
Browse latest Browse all 99

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>