Digital Dive Studio: 전체 콘텐츠 50% 할인

Python Toolbar Button & Menu Creator

Imaginary Spaces - 10월 6, 2020
별 5개 중 4개(평점 1개)
  • 0%
  • 100%
  • 0%
  • 0%
  • 0%

A handy plugin to create and extend toolbar buttons and menus in the Unreal Editor using Python.

  • 지원 플랫폼
  • 지원 엔진 버전
    4.25 - 4.26
  • 다운로드 유형
    엔진 플러그인
    이 제품은 코드 플러그인과 함께 미리 빌드한 바이너리와 언리얼 엔진에 통합되는 모든 소스 코드를 포함하고 있으며 원하시는 엔진 버전에 설치하여 프로젝트에 따라 활성화할 수 있습니다.

The Python Toolbar Button & Menu Creator is an editor plugin that allows you to add and extend the Unreal Editor toolbar and main menu to expose and execute your python functions. It uses a path-based syntax to specify a hierarchy of sub-menus and menu-items so developers can focus on the core functionality of their python-based plugins without worrying about how to expose it to the Unreal Editor.

Here’s an example of how to add a button to the Level Editor’s toolbar with a menu-item and submenu.

Create a singular parent menu:

imgspc.make_menu_item(menu_path='Menu Title', icon_path='MyPlugin/Icons/ToolbarIcon.png')

Create a menu-item that executes the provided callback when clicked:

imgspc.make_menu_item(menu_path='Menu Title/Menu Item 1', callback='client_script.sample_callback1()')

Create a nested sub-menu and menu-item with the provided icon:

imgspc.make_menu_item(menu_path='Menu Title/Submenu/Menu Item 2', callback='client_script.sample_callback2()', icon_path='MyPlugin/Icons/MenuItemIcon.png'", tooltip='Another sample callback')

Please refer to the Documentation and Example Project for more details.

기술적 세부사항


  •  Create new toolbar buttons, menus and menu-items in the Unreal Editor
  •  Link menu-items to any function exposed to Unreal’s running Python instance
  • Add icons and tooltips for greater clarity of menu-item functionality

Code Modules: UnrealMenuItem (Editor)

Number of Blueprints: 0

Number of C++ Classes: 4

Network Replicated: No

Supported Development Platforms: Win64, Linux, Mac

Supported Target Build Platforms: N/A (Editor only)

Example Projects & Documentation:

Please visit our Support Forum if you have any questions or comments.