Version: Unity 6.3 LTS (6000.3)
Language : English
Configure LowLevelPhysics2D API objects with definitions
Attach custom data to LowLevelPhysics2D API objects

Configure global LowLevelPhysics2D API settings

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.

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

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

  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 Physics 2D, then the Low Level tab.

  4. Drag the Physics LowLevel Settings 2D asset from the Project window to the Physics Low Level Settings setting.

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

Configure the settings

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

Additional resources

Configure LowLevelPhysics2D API objects with definitions
Attach custom data to LowLevelPhysics2D API objects
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961