I am currently making the 2d game Asteroids in Unity, i want to play a sound whenever an asteroid is hit by the player’s bullet however because the asteroid is an instantiated object i’ve had to use the PlayClipAtPoint Method but using this method i cannot get the sound i want to play to spawn/be audible if anyone knows a solution help would greatly appreciated
How im trying to play sound
i have tried the following:
AudioSource.PlayClipAtPoint(destructionclip, new Vector3(0, 0, 0), 400f);
AudioSource.PlayClipAtPoint(destructionclip, Vector3.zero, 1f);
AudioSource.PlayClipAtPoint(destructionclip, transform.position);
MattyTries is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.