TempJob
Use a temporary job allocation.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Field
- Namespace: Unity.Collections
- Assembly: UnityEngine.CoreModule
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.