public static void SelectMainAssets(Object[] targets)
{
ArrayList list = new ArrayList();
foreach (AssetImporter importer in targets)
{
Texture texture = AssetDatabase.LoadMainAssetAtPath(importer.assetPath) as Texture;
if (texture != null)
{
list.Add(texture);
}
}
Selection.objects = list.ToArray(typeof(Object)) as Object[];
}