Browse Source

Python Setup

Furkan Karakocaoglu 2 years ago
parent
commit
f9da68f25e

+ 1 - 0
testumgebung/CrowdModelling/Packages/manifest.json

@@ -1,5 +1,6 @@
 {
   "dependencies": {
+    "com.unity.scripting.python": "2.1.1-preview.1",
     "com.unity.collab-proxy": "1.14.12",
     "com.unity.ide.rider": "1.2.1",
     "com.unity.ide.visualstudio": "2.0.14",

+ 7 - 0
testumgebung/CrowdModelling/Packages/packages-lock.json

@@ -39,6 +39,13 @@
       "dependencies": {},
       "url": "https://packages.unity.com"
     },
+    "com.unity.scripting.python": {
+      "version": "2.1.1-preview.1",
+      "depth": 0,
+      "source": "registry",
+      "dependencies": {},
+      "url": "https://packages.unity.com"
+    },
     "com.unity.test-framework": {
       "version": "1.1.30",
       "depth": 0,

+ 11 - 0
testumgebung/CrowdModelling/ProjectSettings/PythonSettings.asset

@@ -0,0 +1,11 @@
+{
+    "MonoBehaviour": {
+        "m_Enabled": true,
+        "m_EditorHideFlags": 0,
+        "m_Name": "",
+        "m_EditorClassIdentifier": "Unity.Scripting.Python.Editor:UnityEditor.Scripting.Python:PythonSettings",
+        "m_pythonInterpreter": "C:/Python27/python2.exe",
+        "m_pythonTimeoutMs": 1000,
+        "m_sitePackages": []
+    }
+}

+ 7 - 0
testumgebung/CrowdModelling/Setup.txt

@@ -0,0 +1,7 @@
+#Bachelor-Thesis
+
+#Python Setup
+1. Install Python 2.7
+2. Install PySide (pip install pyside)
+3. Insert - "com.unity.scripting.python": "2.1.1-preview.1" - into manifest.json 
+4. Go to Edit -> Project Settings -> Python for Unity -> Browse Python 2.7 executable