Quick answer: Unity Job System emitting Temp allocator warnings on domain reload? Temp allocations don't survive frame boundaries - allocate TempJob with explicit dispose or use Persistent.

Console fills with allocator Temp is not allowed during domain reload when iterating an Anim BP.

Use Allocator.TempJob

new NativeArray<int>(100, Allocator.TempJob)

Lasts 4 frames; survives a frame boundary. Suitable for jobs that span single frames.

Or Persistent for long-lived

If the data lives across frames, Allocator.Persistent. Explicit Dispose required.

Audit allocator lifetimes

Memory Profiler > Native Memory. Allocator type per allocation is visible; Temp leaking into long-lived storage is the bug.

“Temp is for one frame. Anything else is a different allocator.”

Wrap allocator choice in a helper: JobAlloc(int) for per-frame, SessionAlloc(int) for persistent. Lifetime intent is explicit at call site.

Related reading