decline-cookies / anvil-unity-dots

Unity DOTS and ECS specific additions and extensions to Anvil
MIT License
4 stars 1 forks source link

FixedListExtension - Add ToFixedList* #290

Closed mbaker3 closed 10 months ago

mbaker3 commented 10 months ago

Populate a fixed list with the contents of an IEnumerable

What is the current behaviour?

Since the Fixed List types are missing a constructor that takes an IEnumerable there is no way to easily populate a fixed list.

What is the new behaviour?

Any IEnumerable<T> can now have ToFixedList32 (and all other sizes) called to generate a fixed list version of the enumerable.

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?