- Home /
how to make multiple sound augmented reality in 1 scene UNITY?
In my case :- I will make multiple sound augmented reality in 1 scene UNITY , but now i just can make only 1 sound in a scene Unity :-
I make it at AR Camera with Audio Source
and sound scrip:
using UnityEngine; using System.Collections;
public class DolSound : MonoBehaviour {
public Transform target2;
public AudioSource suaradol;
void Start () {
}
void Update(){
if(Input.GetMouseButton(0)){
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
if(Physics.Raycast(ray, out hit)){
if(hit.transform == target2){
suaradol.GetComponent<AudioSource>().Play();
}
}
}
}
} Please teach me step and script to make multiple sound augmented reality in 1 scene UNITY
someone tell me , i must assign AudioClip to them and play them one by one, but how about the step to get it ???
Your answer

Follow this Question
Related Questions
Decrease volume of individual sounds over time 0 Answers
How to stop footstep sound when jumping, but continue when hitting the ground? 1 Answer
Question about audio (AudioSource). My ingame sound doesn't sound like the original audio file? 3 Answers
Audio Manager 1 Answer
Sound not playing on Galaxy S4 device 0 Answers