Solved: Why transform in foreach loop?

The loop iterates over whatever Transform object is assigned to pathPrefab.

[…] and look up in a list stored here each Transform child. And then we add every of this childs to our list waveWayPoints in every loop? And the reason we goes up to Transform is that it is the only place the reference to our childs are stored. Is it right?

That’s right. :slight_smile:


See also: