Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

I have a question

Discussion in 'Audio & Video' started by George-Georgiou, Jan 7, 2015.

  1. George-Georgiou

    George-Georgiou

    Joined:
    Jan 7, 2015
    Posts:
    2
    ok am trying to make a script.. for example a radio to start play music or something any ideas?

    function Update()
    {
    if(Input.GetKeyDown("e"))
    {

    "what am i suppose to write here".Play("sound", PlayMode.StopAll);
    }
    }
     
  2. Veemix

    Veemix

    Joined:
    Dec 5, 2014
    Posts:
    25
  3. George-Georgiou

    George-Georgiou

    Joined:
    Jan 7, 2015
    Posts:
    2
    thanks a lot man.. yea i know i have to put an audiosource its the audio.play that i didnt know.. thanks again