title: Adding audioClip from the Resources folder through code
body: <p>How can I add and play short audioClip by name in code in Unity?
  I tested a lot of samples from the Internet but anyone doesn't work.</p>
  
  <pre><code>    AudioSource audio = gameObject.AddComponent&lt;AudioSource&gt;();
      audio.Play((AudioClip)Resources.Load("clip1"));​
  </code></pre>
  
  <p>To the second line:</p>
  
  <blockquote>
    <p>Assets/Resources/ClickAction.cs(14,55): error CS1525: Unexpected symbol `'</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/b0GIf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b0GIf.jpg" alt="enter image description here"></a></p>