I’m trying to work with UnityWebRequests on WebGL and have noticed that I can pass a NativeArray.ReadOnly to upload using UploadHandlerRaw. I thought that loading data into a NativeList may reduce my GC, but I wasn’t sure if WebGL supports NativeList as it can be a bit restrictive on native memory. Could anyone confirm whether these are supported?
Native collections are supported. They’re based on native allocators provided by Unity, which are pretty foundational to a lot of things and are supported in the WebGL target.
2 Likes
Awesome, thank you!
In general, any package is supported on any platform by default. Especially if the package is installed by default.
Where it isn’t, it’s noted in the manual or in the respective package documentation. Check for pages labelled “Compatibility” or “Limitations” or similar.
1 Like