hey there reader!
i created an texture array, and at some point in my code, i want to clear the array. so i tried using ArrayName.Clear();
and Array.Clear(ArrayName, 0, ArrayName.Length)
. but i just cant figure out how to make them work, cause both of them just keep throwing errors at me.
now i though i could create a for loop, which removed every time it ran, it would delete the [0] index of the array. but this gives me the error UnityEngine.Texture does not contain a defenition for “RemoveAt” etc.etc…
i think my problem lies somewhere in how i typed the RemoveAt an Clear(), sinds Texture does contain a defenition for .Length, dut not for .length.
is there anyone out there with some idea how i can empty my array? in like any way?
thanx for lookin in to it.