Here is what I found
1. Create a new javascript
2. Paste in below code
public var clip : AudioClip; function Start(){
audio.PlayClipAtPoint(clip, Vector3 (5, 1, 2));
}
3. Drag your javascript to your object
4. Drag your sound clip into the variable "clip"
5. Just run your game and the sound will be played
Android app
ReplyDeleteI am very enjoyed for this blog. I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me
Android app