docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Installation

    To use the Unity Physics package, you must have a supported version of Unity installed. The Unity Physics package is compatible with Unity 2022.3.20f1 and later.

    Install the Unity Physics package through the Package Manager window. Use the com.unity.physics name, if you choose the add the package by name option.

    Recommended packages

    Check the overview of the available ECS packages.

    You should add the following recommended set of core packages to your project:

    • com.unity.physics
    • com.unity.entities
    • com.unity.entities.graphics

    IDE support

    The Unity Physics package uses Roslyn source generators. Because of this, you should use an IDE that's compatible with source generators. Previous IDE versions might experience slow-downs or mark valid code as errors. The following IDEs are compatible with source generators:

    • Visual Studio 2022+
    • Rider 2021.3.3+

    Disable domain reloading

    To get the best performance in your Unity Physics project, disable Unity's Domain Reload setting. For information on how to disable domain reloading, refer to the documentation on Configure Play mode settings.

    For information about the effects of disabling domain reload, refer to the documentation on Details of disabling domain and scene reload.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)