Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Physics Low Level Settings 2D asset Inspector window reference

Explore the properties you can use to configure the global settings of the LowLevelPhysics2D API in the Editor.
Read time 2 minutesLast updated 13 days ago

Note
This documentation is about writing C# scripts using the
LowLevelPhysics2D
API. To use 2D physics in the Unity Editor using components like the Rigidbody 2D component, refer to 2D physics instead.
Explore the properties and settings you can use to configure the defaults and global behaviour of the
LowLevelPhysics2D
API. For more information, refer to Configure global 2D physics settings.

Layers

The properties in this section configure the layers Unity uses to detect collision. For more information, refer to Configure collisions between LowLevelPhysics2D API objects.

Property

Description

Physics Layer NamesSets the names of the 64 layers the
PhysicsMask
API uses if you enable Use Full Layers. By default, the first layer has the name Default and the other layers have no name.
Use Full LayersEnables the
PhysicsMask
API using the 64 layers listed under Physics Layer Names. If you disable this property, the
PhysicsMask
API uses the 32 GameObject layers instead.

Default Definitions

The properties in this section set the default values when you create a new definition object. For the individual sections, refer to the following:

Globals

Property

Description

Concurrent SimulationsSets the number of physics simulations that can run at the same time. The default is 2.
Length Units Per MeterSets the number of Unity units that correspond to one meter in the physics simulation. The default is 1.
Draw In BuildDraws the debug visualization in a built application. For more information, refer to Draw a debug visualization of objects.
Bypass Low LevelDisables the
LowLevelPhysics2D
API physics system.

Additional resources