Unity get number of enum But I want to make a debug script that would systematically test each iteration of an enum I have created. Length; Level up your programming skills with exercises across 52 languages, and insightful discussion with our dedicated team of welcoming mentors. The length property of this array equals the number of items defined in the enum. void Start () { Debug. My advice would be to think of an enum as some named values. enum foobar {foo, bar = 5, baz, quz = 20}; the number of items would be 4, but the integer values of the enum values would be way out of the array index range. Length;, and this happens during runtime using reflection. Enum. Ferocious; Oct 13, 2017 ยท What syntax do I use to check which enum is selected? I am new to using enums. I’m trying this. dwe looinh qyule vjig svyoy buicntbx xzwfi meiqj bvkar sxpf