I made a class like this
[System.Serializable]
public class AudioClipPlayer : Object
{
private AudioClip clip;
private float repeat;
};
and on the Inspector, it appears like this
-----------------------------------------------------
Audio Clip Player None (Audio Clip Player) @
-----------------------------------------------------
Here's the problem I want to drag and drop a audio file to the 'None' area. But I have no idea what I have to do. I want to look like this
----------------------------------------------
Audio Clip Player None (Audio Clip) @
----------------------------------------------
And I want to look exactly like above.. because I wanna make a array for AudioClipPlayer like this
[System.Serializable]
public class ZombiAudioClips
{
public AudioClipPlayer[] idleClips;
}
I want to make that Unity recognize AudioClipPlayer to AudioClip. Is that possible? Thx for reading.