Python can be used in UE4, I wrote the source in VS Code, but it is hard without input interpolation. So I verified the method of input interpolation. Verified with UE4.24 + VS Code
From Edit / Plugins Enable Python Editor Script Plugin
Python Editor From Edit / Project Setting Enable Python / Developer Mode.
By enabling this, after restarting UE4, Python stub data for use in input interpolation will be created under ProjectPath \ Intermediate \ PythonStub.
Open File / Preferences / Settings
Select Python.AutoCOmplete: ExtraPaths from Settings
in settings.json
"python.autoComplete.extraPaths": [
"${workspaceFolder}/../../Intermediate/PythonStub/unreal.py"
],
"python.jediEnabled": false,
Add the above settings. python.autoComplete.extraPaths specifies the path to the Python stub file output from UE4. With VSCode default intelligence, analysis failed and could not be used. "python.jediEnabled": false, Set to to use Microsoft intelligence.
You can confirm that the input interpolation is working by typing unreal. Now you can write some code without going to unreal help.
It's nice that input interpolation works, but the interpolation speed is slow, thinkpad x1 yoga 2018 I tried it in the environment of Intel Core i7 8650U, but it takes less than 10 seconds for the interpolation to work. Still, it's easier to write the source than going to find help.
Recommended Posts