Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TempJob

Use a temporary job allocation.
Read time 1 minuteLast updated 9 days ago

Definition

TempJob = 3

Remarks

A slower allocation than Allocator.Temp but faster than Allocator.Persistent. Use it for thread-safe allocations within a lifespan of four frames.
Important: You must Dispose of this allocation type within four frames, or the console prints a warning, generated from the native code. Most small jobs use this allocation type.