Give Audio Clip From Array A Unique I.D.

Is there a way to give an audio clip from a specific array of audio clips a unique I.D. that I could reference from other clips or save to player prefs?

I like static classes for stuff like that (uncompiled/tested example). Note: the counter will reset to Zero every time you launch the program, so this won’t do for SAVING the ID between sessions. But if you give them ID’s onload or at runtime only, this should do.

static public class AutoClipCounter{
   static int counter=0;
   public static int GetNextID() {return counter++;}
}

Access with something like;

clipID=AudioClipCounter.GetNextID();