What Exactly Is A ForEach Loop? Unity Tutorial

preview_player
Показать описание

A quick explanation of ForEach loops and how they can work in Unity!
Рекомендации по теме
Комментарии
Автор

Hi, I was wondering if you don't know how many gameobjects there are in the scene, and you put the counter to 5. Would that give 2 blank results? an errormessage? Thanks!! <edit> tested it and it does give and error when I set the number to high or skip on of the places in the list that I can drag the gameopbject in. We probably need another if(if gameobject is"") to skip the debug.log I guess... ;-)

JakeSimmer
visit shbcf.ru