Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

unity5 Ui Onclick change audio clib ?

Discussion in 'Audio & Video' started by DRIVER1ksa, Jul 21, 2016.

  1. DRIVER1ksa

    DRIVER1ksa

    Joined:
    May 29, 2015
    Posts:
    28
    i have multiple audio clip. for android game
    music 1 ,music2 ,music3 i want change between them when click Ui

    i search while not found any example
     
  2. rorywalsh

    rorywalsh

    Joined:
    Apr 10, 2015
    Posts:
    114
    Just change the AudioClip property of your AudioSource.