docs.unity.cn

Python Scripting 5.0.0-pre.5

    Show / Hide Table of Contents

    System Requirements

    • Windows 10+ or macOS High Sierra 10.13+, 64-bit versions only

    • Unity 2021.2. We recommend installing the latest version of Unity 2021.2 via the Unity Hub; 2020.2 is the minimum.

    • Optional: To run the PySide2 example, you will need the PySide2 package (see below).

    Installation

    You can install this package through the Package Manager or via your project’s manifest.

    In Unity 2022.1 and above:

    • Open the Package Manager Project Settings.
    • Enable the Enable Pre-release packages checkbox.
    • Open the Package Manager window.
    • Click the Packages dropdown and select Unity Registry.
    • Find and select Python Scripting in the list of packages, and click Install.

    In Unity 2021.2:

    • Open the Package Manager window.
    • Click the + dropdown and select Add package by name.
    • Enter com.unity.scripting.python, and click Add.

    Once the installation process is complete, "Python successfully installed" will appear in the Console.

    In This Article
    • Installation
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, May 5, 2022
    Terms of use