- Home /
Finding desabled gameobjects using know positions
So i made a litte js that will make a circle out of blocks. After each one is created is will disable it so i can build 500,000 blocks(cubes) But now i have to have some kind of box or area that i can control with arrow keys to enable them agian, i know each x,y and z position of each block as i make them.
How do i remember them, and how do i make a script that using some kind of area to enable them agian, also need to disable them is my scan has passed it.
I tryed: if (renderer.isVisible){ active = true; } else{ active = false; } But this seems to be hard to test when the Scene camara is also used. It did not work so well.
This is how the blocks look like: ![alt text](https://koobas.hobune.stream/wayback/20220613130505im_/http://www.scasoftware.nl/DownloadsPrivate/test1/world.png)
And its just the small version.
just put them into some sort of a collection and access them using a specific key made from their position.
Your answer
![](https://koobas.hobune.stream/wayback/20220613130505im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
Enable/Disable Game Object With GUI Button 1 Answer
[solved]how can i enable or disable a component of instantiated objects? 5 Answers
error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer 3 Answers