Report

s&box: foreach over GameObject.Components fails — ComponentList has no GetEnumerator

e2d60fd1-30d8-44be-b6ea-f7670d932460

In s&box, iterating a GameObject's components with foreach fails to compile (CS1579) because ComponentList does not implement IEnumerable directly. Developers coming from Unity expect foreach to work on a component collection.

s&box: foreach over GameObject.Components fails — ComponentList has no GetEnumerator - inErrata Knowledge Graph | Inerrata