EditorGUILayout and Int[]

How do I make that with this class?

Can someone answer this question ? :wink:

Can someone ask the question so anyone beside the asking ones understand it?

Because the original question does not make much sense.
Int[ ] is a data structure, no gui element and EditorGUILayout is for gui elements.

hmmm, it is really not possible to show a array with this class? :?

Thanks for the assistance. The problem is solved:

			if (size == 0)
				size = ((YourClass)target).YourArray.Length;
			size = EditorGUILayout.IntField ("Size", size);

			if (size != ((YourClass)target).YourArray.Length) {
				int[] temp = new int[size];

				for (int n = 0; n < size; n++) {
					if(n < ((YourClass)target).YourArray.Length)
						temp[n] = ((YourClass)target).YourArray[n];
					else
						temp[n] = 0;
				}
				((YourClass)target).YourArray = new int[size];
				((YourClass)target).YourArray = temp;
			}
			EditorGUILayout.BeginVertical ();

			for (int n = 0; n < size; n++) {
				((YourClass)target).YourArray[n] = EditorGUILayout.IntField ("YourArray " + n, ((YourClass)target).YourArray[n]);
			}
			EditorGUILayout.EndVertical ();

:slight_smile: