Page 1 of 1

Support for NativeHashMap/NativeList/NativeQueue

Posted: Thu Jun 30, 2022 11:18 am
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.

Re: Support for NativeHashMap/NativeList/NativeQueue

Posted: Thu Jun 30, 2022 12:56 pm
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.