-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathGetStubAndSetupBSCodeIDE.txt
More file actions
25 lines (24 loc) · 1 KB
/
GetStubAndSetupBSCodeIDE.txt
File metadata and controls
25 lines (24 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
To setup quickly a Python Env for unreal:
inside the project:
- Activate plugins:
Edit > Plugins
PythonEditorScriptPlugin
EditorScriptingUtilities
Restart the engine if needed
- Configure the plugins:
Edit > Project Settings
Plugins > Python : Check "Developer Mode" (this mode publish Stub file in the intermediary folder of the project so we can use auto completion in our Python IDE)
Restart the engine
- Setup the IDE:
Depending of your IDE, for Visual Code we do thing like this:
Open VSCode
Download/install/enable/configure Python and Pylance
configure your settings.json like this
{
"python.pythonPath": "D:\\UE\\UE_4.25\\Engine\\Binaries\\ThirdParty\\Python\\Win64\\python.exe",
"python.languageServer": "Pylance",
"python.analysis.stubPath": "D:\\projects\\PythonStub\\4.24",
}
(note: path can be relative if the setting are workspace based)
more documentation on how to launch a python script:
https://docs.unrealengine.com/en-US/Engine/Editor/ScriptingAndAutomation/Python/index.html