can i easily create a list of variables from the inspector?(C#)

i need to create a list of variables with different things, so instead of doing something like

public GameObject projectile1;
public GameObject projectile2;
public GameObject projectile3;

could i do something in the inspector that lets me do something similar wihout having to create a bunch of variables in a script?

What would you want to visualize in the Inspector?

if you want many projectiles, then create an array or list, add a size , thats it

public List<GameObject> gameObjects;
public GameObject[] gameObjects;
1 Like