Is there a limit to the amount of elements you can have in an array?

also, another thing i just thought about, whenever i add the icons for the items to my inventory i do a for each loop on them. I havent noticed any slowness of lag or any delay at the beginin of the game before i could control my character tbh, tho i only have 119 individual items as of now using that system so… Im wondering, if i had to use a for each loop with my current system at say, over 1000 items, how would that perform lmao. I mean, even if i wanted to use individual bps for each item, i would still loop through each to add them to my selection screen so… that wouldnt change much at all with what im trying to make right now… it’s just a thought i had about how much of an impact or difference would i feel whenever i were to make the engine loop through over 1k different items, which i guess i’ll eventually add at some point, maybe.