Public Array of Files that can be assigned via Inspector

I need my script to know a few paths to .csv-Files. Since it is possible to declare an public array of GameObjects and just drag and drop these Objects into the Array via the inspector, I wondered if I could do something like this with my .csv-Files.

Doing something like

public File[] csvFiles;

doesn’t work. Any ideas? Don’t know if it is even possible…

Try

public TextAsset[] csvFiles;

You might need to rename your csv files to .txt for Unity to understand what they are, though.