Search Unity

Audio How create array lists sprites and sounds

Discussion in 'Audio & Video' started by Solep, Jan 7, 2021.

  1. Solep

    Solep

    Joined:
    Jan 7, 2021
    Posts:
    2
    I need an example code to reproduce a sound with a sprite. (without changing lists).
    how create array list or solution
    I have two lists


    List<Sprite> image = new List<Sprite>();
    List<AudioClip> clip = new List<AudioClip>();