Version: Unity 6.5 Alpha (6000.5)
Language : English
Configure Physics Core 2D API objects with definitions
Attach custom data to Physics Core 2D API objects

Configure global Physics Core 2D API settings

Note: This documentation is about writing C# scripts using the Unity.U2D.Physics API. To use 2D physics in the Unity Editor using components like the Rigidbody 2D component, refer to 2D physics instead.

To configure global settings for the Physics Core 2D API, create and assign a Physics Core Settings 2D asset. Follow these steps:

  1. In the Project window, select Assets > Create > 2D > PhysicsCore Settings 2D.

  2. From the main menu, select Edit > Project Settings.

  3. In the Project SettingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your project behave. More info
    See in Glossary
    window, select PhysicsCore 2D.

  4. Drag the Physics Core Settings 2D asset from the Project window to the PhysicsCore Settings setting.

The 2D physics system now uses the settings in the asset.

Configure the settings

To display and edit the settings, in the Project Settings window, select PhysicsCore 2D > Settings. For a full list of settings, refer to PhysicsCore 2D reference.

For more information about configuring each section of the settings, refer to the following:

Additional resources

Configure Physics Core 2D API objects with definitions
Attach custom data to Physics Core 2D API objects