docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PythonSettings

    Settings for the Python Scripting package.

    Inheritance
    object
    Object
    ScriptableObject
    PythonSettings
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Scripting.Python
    Assembly: Unity.Scripting.Python.Editor.dll
    Syntax
    public sealed class PythonSettings : ScriptableObject

    Properties

    PythonNetVersion

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

    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

    In This Article
    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)