UE4PythonHelper

UE4PythonHelper

This plugin is only used in editor mode!!!

ph01

Features

  1. This plug-in provides an “unreallib.py” module, which contains a complete UnrealEngine Python API. When you use it in text editors such as VS Code, you will get intelligent code prompt, function parameter prompt, return value type inference, comments, etc. you can also jump to the function in the module to view the detailed function definition. It’s better than automatically generated unreal.py file, smaller and compact, and supports the Type Hint syntax of python3.
  2. Automatically detect all Python files in the “$ProjectDir$/ Python” directory and run the file by clicking a button.

  3. After clicking the python file, it will automatically identify the functions defined and call them directly by clicking a button (only functions without parameters can be executed)

  4. When you edit a file in VS Code, it will automatically detect the change of the file and refresh the list of callable functions. The automatic refresh function can be turned off. Note: when “import” a module for the first time or through “importlib.reload ()” to reload a module, it executes the entire module.

  5. You can directly open the python folder of the current work by shortcut.

  6. When the panel is closed, all automatic detection will be closed until the panel is reopened.

Startup

  1. Open PythonHelper Tab( MainMenu -> Window -> PythonHelper)

ph02

Known Issue

  1. File named in “test.py” or directory named in “test” is not supported.

  2. File name or directory start with number is not supported.

  3. Numeric directory and file name are not supported.

  4. Chinese directory and Chinese file name are not supported.

pythonhelper in marketplace

中文

本插件只能在编辑器模式下使用

插件功能

  1. 本插件提供一个 unreallib.py 模块,模块中包含了完整的 UnrealEngine Python API, 当你在VS Code 等编辑器中使用的时候,将获得智能代码提示,函数参数提示,返回值类型推断,注释等,也能跳转到模块中的函数,查看详细的函数定义。

  2. 自动检测 “$ProjectDir$/ Python” 目录下的所有 python 文件,通过点击按钮运行该文件

  3. 点选Python文件后,会自动识别文件中定义的函数,通过点击按钮直接调用(只能执行无参数的函数)

  4. 当你在VS Code 中编辑文件的时候,自动检测文件的变动,并且重新刷新可调用函数列表。自动刷新功能可以关闭。注意:在第一次 import 模块的时候,和通过 importlib.reload() 重新加载模块的时候,会执行整个模块。

  5. 可以通过快捷方式,直接打开当前工作的Python文件夹

  6. 当面板关闭的时候,所有的自动检测将会关闭,直到重新打开面板

已知问题

  1. 文件 “test.py” 和目录 “test” 不被支持.

  2. 以纯数字开头的文件目录和文件名不被支持.

  3. 纯数字的文件目录和文件名不被支持.

  4. 不支持中文目录和中文文件名.

------------- 感谢您的阅读-------------
作者dreamingpoet
有问题请发邮箱 Dreamingoet@126.com
您的鼓励将成为创作者的动力