Well, lets say you want to have the money af a person in a game, then we might store that as an integer variable. So let’s say we have Peter. His money would be designated by the variable “PeterMoney”.
But if he has a whole family, and we keep their money seperate, we would hvae to create a seperate variable “JaneMoney” and “MarcusMoney”.
So to save ourselvel sometine we could instead make an array of integers. An array is just a collection of certain variables. Each separate entry in an array is called an index. (And the first one is 0, not 1 just to confuse). So instad of creating sperate variables, we just make an array called “Money”.
So if we say that Peter from now on is 0, Jane is 1, and Marcus is 2. Now if i wanted Jane’s money, i would just get the array “Money”, and get index nr. 2.
Where it saves us time, is that maybe we have a Happiness and an Energy variable on each of them (and their 500 neighbors), and now i if want all info about Marcus, i can just get the relevant arrays and get index nr. 2 in each of them, instead of keeping a seperate for every person in the game.
To your solution. You would create an array, and add the object you just hid, into that array. When you then want to un-hide it, you get that array and run a “For Each Loop” which is a function that does the same to each entry of an array, and make that function unhide them all.
You would call the array just like you call a normal variable.