Documentation

Unity Engine

Unity Engine

Thread safe types

Understand thread safe types, such as NativeContainer objects.
Read time 1 minuteLast updated a month ago

The job system works best when you use it with the Burst compiler. Because Burst doesn’t support managed objects, you need to use unmanaged types to access the data in jobs. You can do this with blittable types, or use Unity’s built-in
NativeContainer
objects.

Topic

Description

Introduction to NativeContainerUnderstand Unity's custom thread-safe type,
NativeContainer
.
Implement a custom NativeContainerImplement custom native containers.
Copying NativeContainer structuresCopy and reference multiple native containers.
Custom NativeContainer exampleUse a real world custom NativeContainer example.

Additional resources