Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
1/4
As we know, the foreach keyword generates GC objects every time you use the keyword. For some reason, it is not acceptable. If you really care about the performance and every single detail bothers, try this asset.
This is a complete replacement for foreach keyword. Support almost all collections and support break/continue. Full foreach feature, well tested and well documented.
Supported Collection Class
- Array
- ArrayList
- BitArray
- List
- Dictionary
- HashSet
- LinkedList
- Queue
- Stack
- SortedDictionary
Unsupported Collection Class
- SortedList
- Hashtable
Foreach
(not enough ratings)
37 users have favourite this asset
(37)
$4.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
Secure checkout:

License agreement
Standard Unity Asset Store EULALicense type
File size
85.6 KB
Latest version
1.0
Latest release date
Aug 11, 2016
Original Unity version
4.6.0
Support
Visit siteQuality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Language
Feedback
Partners Program
PartnersUSD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR