error CS1502 List add

Hello , i have getting this error and i dont know what is the fix
error CS1502: The best overloaded method match for `System.Collections.Generic.List.Add(int)’ has some invalid arguments

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Test : MonoBehaviour {

	private string folderName = "";
	private float alpha = 1.0f;
	public List<int> pictures = new List<int>();
	void  Start (){
		alpha = 0.0f;

		Object[] textures = Resources.LoadAll(folderName);
		for(int i= 0; i < textures.Length; i++){
			pictures.Add(textures*);*
  •  }*
    
  • }*
    can someone tell me what is the wrong ?

You’ve declared a list of integers, but you are trying to add an Object to the list. Looks like you need a List of Objects.

public List<Object> pictures = new List<Object>();

Although, if all the resources in your folder are Textures you could also do:

public List<Texture2D> pictures = new List<Texture2D>();

void  Start (){
   alpha = 0.0f;
     
   var objectArray = Resources.LoadAll(folderName, typeof(Texture2D));
    for(int i = 0; i < objectArray.Length; i++)
       {
                 pictures.Add(objectArray *as Texture2D);*

}

}
EDIT: Corrected code