Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


useMultithreading

Should physics simulation use multithreading?
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool useMultithreading { get; set; }

Remarks

Turning on multithreading executes the simulation steps using the job system, and uses the options in PhysicsJobOptions2D to control how to achieve that. Turning off multithreading executes the simulation only on the main thread, and does not use the options in PhysicsJobOptions2D.