I will show you in a simple Unity C# programming tutorial and project how you can change properties of an arrays of GameObjects using a C# script. For this example I will add instances to many gameobjects for which I know that they have a Light-component attached.
On clicking a UI button we will dim all lightsources using a for each loop in C#.
It's a tutorial for beginners to programming with Unity, but I am pretty sure you will learn a lot of new and interesting stuff you can use in your games also... In the tutorial we will jump right into Unity 5 and create the project from scratch.
On this page of the site you can watch the video online Unity C# Programming Tutorial: GameObject Array with Lights with a duration of hours minute second in good quality, which was uploaded by the user Jayanam 28 June 2016, share the link with friends and acquaintances, this video has already been watched 3,729 times on youtube and it was liked by 37 viewers. Enjoy your viewing!