Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
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
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
85.6 KB
Latest version
1.0
Latest release date
Aug 11, 2016
Original Unity version
4.6.0
Support
Visit site

Related keywords

Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR