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.
Nesta página do site você pode assistir ao vídeo on-line Unity C# Programming Tutorial: GameObject Array with Lights duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jayanam 28 Junho 2016, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 3,729 vezes e gostou 37 espectadores. Boa visualização!