Skip to content

Unity H4xx (acilAddOns.dll - CollectionMarshal for Unity)

Pre-release
Pre-release
Compare
Choose a tag to compare
@atcarter714 atcarter714 released this 06 Dec 00:46
· 5 commits to main since this release
17f4c5a

CollectionMarshal.AsSpan now exists in Unity for ultra-fast List iterations ...

Make sure these DLLs go in a folder named "Plugins" somewhere in your asset folder. Just drag and drop them there from the zip file and Unity will pick them up and reload. Now you're good to go.

Add this reference to use CollectionMarhsal directly:
using System.Runtime.Interops Services;

There is also a convenient extension method for Lists that's as simple as:
var span = list.AsSpan();

Let me know how things go! Don't get a speeding ticket!