Version: Unity 6.3 LTS (6000.3)
Language : English
Physics integrations in Unity
Input

Disable and strip the physics integration from your project

Disable and strip the physics integration SDK from your project to meet specific performance or feature requirements.

Unity supports a number of versatile and performant physics engine integrations. However, if your project doesn’t require physics simulation, you can disable and even remove the physics integration entirely from your project. This can result in a smaller build size for certain build platforms and more optimized resource usage. When you do, all physics-related functionality, such as physics APIs and components, no longer work in your project.

If you enabled Strip Engine Code in 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
, you must set GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
SDK
in the Physics Project Settings None to strip the code of all built-in physics integrations alongside other engine code.

To strip the physics integration from your project:

  1. Select Edit > Project Settings to open the Project Settings window.
  2. Select the Physics tab.
  3. In the GameObject SDK dropdown, select None.
  4. Restart the Editor for your change to take effect.

Additional resources

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