1234567891011121314151617181920 |
- using UnityEditor.Scripting.Python;
- using UnityEditor;
- using UnityEngine;
- public class PythonManager
- {
- [MenuItem("Python/Create Heatmap")]
- static void RunPythonFile()
- {
- string scriptPath = Application.dataPath + @"/Depictions_Years/Scripts/Python/Heatmap.py";
- PythonRunner.RunFile(scriptPath);
- }
- [MenuItem("Python/Create Heatmap Multipe")]
- static void RunPythonFileMultiple()
- {
- string scriptPath = Application.dataPath + @"/Depictions_Years/Scripts/Python/Heatmap_Multiple.py";
- PythonRunner.RunFile(scriptPath);
- }
- }
|