Support for NativeHashMap/NativeList/NativeQueue

Vote for new features, or make your own requests here.
Post Reply
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Support for NativeHashMap/NativeList/NativeQueue

Post by Joel »

Status

Requested

Complexity

6/10

Description

Support for the new native collection types which use the new 'Job' system.

Support for NativeArray was added in 3.4.3.

However, adding support for other Native collections is more difficult as they exist within a package which is not installed by default. As Unity currently provides no clean way of conditionally compiling code based on the existence of a package, we must also create a reliable mechanism by which to do this.
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
User avatar
Cranktrain
Posts: 16
Joined: Thu Nov 09, 2017 7:15 pm

Re: Support for NativeHashMap/NativeList/NativeQueue

Post by Cranktrain »

Yes, the not-included-default packages are a headache. One option is to do what Esoteric Software do with Spine, their animation software and Unity runtime, which is to provide bundled up 'extension' packages that users then download in addition to the main library. In Spine's case, it's a bunch of URP specific things, mainly shaders.

I imagine the difficulty with Easy Save taking the same approach is that Spine only has that one extension package, and Easy Save could end up with many (given how many packages there are nowadays) and that's a lot of overhead to manage.
Post Reply