How to initialize lists with set number of null elements?

Hey guys,
I want moAudioClip and moGameObject to have 3 null elements each whenever a MoreOptions is created.

How do I do that? I’ve been trying some with a constructor but can’t get it to work and have left it empty for now.

public class Test : MonoBehaviour {

	public class MoreOptions{

		public List<AudioClip> moAudioClip;
		public List<GameObject> moGameObject;

		public MoreOptions(){



	public List<MoreOptions> moreOptionsList = new List<MoreOptions>();

You can’t and you shouldn’t because adding null element to a list is not allowed.
However you can add valid 3 elements then you can set them to null. Which is very ugly though :confused:

Its better to change your logic.