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

a question of AudioSources's API

Discussion in 'Audio & Video' started by bigTree, Apr 3, 2015.

  1. bigTree

    bigTree

    Joined:
    Jul 24, 2014
    Posts:
    6
    I use AudioSources.isPlaying in my project in untiy5.0;but unity tip it doesn't exist or lack of needed namespace; But I can find AudioSources.isPlaying in ScriptingAPI; I need an answer, thanks very much~
     
  2. gregzo

    gregzo

    Joined:
    Dec 17, 2011
    Posts:
    795
    Can you post code?
    In Unity 5, you first need to grab a ref to the AudioSource via GetComponent, maybe that's your issue.