Question by 
               Effsty · May 02, 2017 at 01:25 PM · 
                audiosoundaudiosourceplay  
              
 
              Audio is cut in script
I have an Audio Source component attached to my object. I copied the script from here link text
 using UnityEngine;
 using System.Collections;
 
 [RequireComponent(typeof(AudioSource))]
 public class ExampleClass : MonoBehaviour
 {
     public AudioClip impact;
     AudioSource audio;
 
     void Start()
     {
         audio = GetComponent<AudioSource>();
     }
 
     public void play_sound()
     {
         audio.PlayOneShot(impact, 0.7F);
     }
 }
audio is cut in my script

why is this happening?
 
                 
                audionotworking.png 
                (6.5 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Need help: new sound isnt played correctly anymore 2 Answers
Play audio clip over another audio source 1 Answer
audio is not playing during IEnumerator 1 Answer
Cracking at end of audio? 0 Answers
audio.play does not work 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                