Search Unity

  1. The 2021.2 beta is now available. To find out what's new, have a look at our 2021.2 beta blog post.
    Dismiss Notice
  2. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  3. Dismiss Notice

Unity Python for Unity release announcements

Discussion in 'Formats & External Tools Previews' started by markvi, Mar 30, 2021.

Thread Status:
Not open for further replies.
  1. markvi

    markvi

    Unity Technologies

    Joined:
    Oct 31, 2016
    Posts:
    91
    This thread will be updated each time a new version of the Python for Unity package becomes available.

    For more information about Python for Unity, please have a look at our documentation.

    Please create a new thread for feature requests, bug reports, or general discussion using the python tag. For bug reports in particular, it helps us immensely if you prepare a minimal project that reproduces your issue. Submit a bug report using the Unity Bug Reporter and include the id you receive (via email) in your post.
     
    tran10 likes this.
  2. markvi

    markvi

    Unity Technologies

    Joined:
    Oct 31, 2016
    Posts:
    91
    We are thrilled to announce that Python for Unity 4.0.0-exp.5 is now available!

    Python for Unity integrates the Python programming language with Unity, so that you can adapt your studio's existing pipeline scripts:
    • Automate scene and sequence assembly in the context of using Unity as a real-time renderer.
    • Automate time consuming tasks like duplicating or modifying a large quantity of Assets.
    • Author custom editor tools that could both use complex UI elements and interact natively with other DCC suites.
    Python for Unity provides:
    • A Python Script Editor window principally aimed at Technical Artists who want to run short scripts and easily create new menu items that run Python code.
    • An API aimed at Pipeline Technical Directors who want to call studio scripts implemented in Python from C# and vice versa.
    • Project Settings.
    • Installing and loading Pip Packages.

    4.0.0-exp.5 is a major upgrade from our last public release, and incorporates a large number of changes. In summary:
    • Based on Python 3.7; scripts based on Python 2.7 will need to be ported.
    • Users no longer need to install Python on their system.
    • In-process Python is no longer reinitialized when the Unity domain reloads.
    • Removed the out-of-process API. The PySide example now runs in-process and is much simpler.
    • Limited support for a virtual environment workflow via the ProjectSettings/requirements.txt file.
    • Many bug fixes.
    Documentation for the Python for Unity package is available here, and the full changelog can be found here.

    This is an experimental release, and thus is not visible in Package Manager. To install this package, open Package Manager, click the + at the top left and select Add package by name.... Enter com.unity.scripting.python as the name and and 4.0.0-exp.5 as the version and click Add. Alternatively, you may edit Packages/manifest.json and add "com.unity.scripting.python": "4.0.0-exp.5", to the list of dependencies, or edit the existing entry for Python for Unity to update the version.

    Python for Unity is built on the open source Python for .NET project. We are indebted to the maintainers: thank you Amos, Benedikt, and Victor!

    > How to report bugs <
     
    SMR83, Fressbrett and tran10 like this.
Thread Status:
Not open for further replies.
unityunity