docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Known issues and limitations

    Editor-only feature not for runtime builds

    The Python Scripting package is a feature designed to work only in the Unity Editor. It isn't available in runtime builds.

    Script editor window output limitation

    The Python Script Editor output section (top section) has a limit of 10,000 characters.

    Python for .NET with Unity limitations

    When you access the Unity API in Python it is not actual bindings of our C# API. This is possible thanks to Python for .NET that allows you to call the functionnalities of any loaded C# assemblies in Python dirrectly. This can sometimes cause unexpected issues due to Python for .NET limitations regarding Unity's usage of C#.

    For example it is currently recommended to use list comprehension to convert Unity C# list-type data structure to python list instead of a simple cast:

    • myPythonList = list(Selection.activeGameObjects): this can cause Unity to close unexpectedly
    • myPythonList = [gameObject for gameObject in Selection.activeGameObjects]: this is OK

    Project settings limitations

    • You cannot change the internal Python version
    • You cannot use a virtual environment manager like venv or conda.
    • Paths are treated as verbatim strings. You need to expand environment variables or use the ~ (on macOS and linux) denoting the home directory.

    PySide and Apple Silicon

    PySide2 Python package is not compatible with Apple Silicon. This affects the sample "PySide Camera Selector" that is currently not usable on any Apple computer with an Apple Silicon processor.

    Workaround: You can use PySide6, PyQt5, or PyQt6 Python package instead of PySide2. However, this might require small changes in the sample to make it work.


    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • Editor-only feature not for runtime builds
    • Script editor window output limitation
    • Python for .NET with Unity limitations
    • Project settings limitations
    • PySide and Apple Silicon
    Back to top
    Copyright © 2025 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)