docs.unity3d.com
    Show / Hide Table of Contents

    Class PythonSettings

    Settings for the Python for Unity package.

    Inheritance
    System.Object
    PythonSettings
    Namespace: UnityEditor.Scripting.Python
    Syntax
    public sealed class PythonSettings : ScriptableObject

    Properties

    PythonNetVersion

    Version number of our custom python.NET forked library installed with Python for Unity.

    Declaration
    public static string PythonNetVersion { get; }
    Property Value
    Type Description
    String

    Version

    Returns the release version.

    Must be made to match the package.json or else things get confusing.

    Declaration
    public static string Version { get; }
    Property Value
    Type Description
    String

    Methods

    GetSitePackages()

    Set of additional site-packages paths used in your project.

    Example: add your studio scripts here.

    This is a copy; avoid calling SitePackages in a loop.

    Declaration
    public static string[] GetSitePackages()
    Returns
    Type Description
    String[]

    A string array of the site-packages

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023