// check if AudioSurface Contains texture in TextureName List private bool ContainsTexture(string name, vAudioSurface surface) { for (int i = 0; i < surface.TextureOrMaterialNames.Count; i++) { if (name.Contains(surface.TextureOrMaterialNames[i])) { return(true); } } return(false); }