I have tried everything, Arrays / Multidimensional Arrays, Jagged Arrays, Lists, Classes…
I am not getting the result I want to work in the Editor.
I have an Array of textures. However, I want to dynamically add/delete other texture arrays.
MainArray
-----TextureArray1
----------texture1
----------texture2
----------texture3
-----TextureArray2
----------texture4
----------texture5
----------texture6
----------texture7
----------texture8
----------texture9
-----TextureArray3
----------texture10
----------texture11
Then I want to access them like so
MainArray[0,2].name or MainArray[0][2].name ----> “texture2”
I want to be able to add a TextureArray# at the end of the MainArray
I want to be able to delete a TextureArray# & all texture# within the MainArray
I want to be able to add a texture# at the end of the TextureArray#
I want to be able to delete a texture# within the TextureArray#
I first got it working with a single-dimensional array with no trouble. I thought converting it to a multi-dimensional array would be easy. No. The problem is adding and deleting. I have to build a temporary array with an additional value and then copy it back to the MainArray. Not Working like it does in a single-dimensional array. I tried a List with its simple Add & Delete but couldn’t get it to work at all. As soon as I got to (Texture2D)EditorGUILayout.ObjectField it broke. It said I had too many arguments even though it worked fine with an Array.
How do I go about creating this type of system?