This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
基础
专业(SIM)
UnigineEditor
界面概述
资源工作流程
Version Control
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
统一的Unigine着色器语言 UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

ImGuiSamples Plugin

The ImGuiSamples plugin demonstrates the integration of Dear ImGui library with UnigineEditor and the use of the Editor API to create complex custom tools for solving various tasks.

The plugin creates its own window in UnigineEditor, this window has three tabs, each with a separate sample.

This sample is available on the Add-On Store as ImGuiSamplesPlugin and covers multiple basic cases encountered by users when making their own Editor plugins.

Spline Editor#

This sample demonstrates how to use the Editor's Undo/Redo system via the API, work with hotkeys, and implement custom visualization, using spline editing as an example.

Enabling the Edit Mode option activates the spline editor. The following actions associated with remappable hotkeys (Windows -> Settings -> Hotkeys) are available:

  • LMB - Select point
  • Shift + LMB - Create new point to the end of spline or add/remove point from selection
  • Del - Remove point
  • F - Focus on selected point
  • Ctrl + Z - Undo
  • Ctrl + Y - Redo

Editor (Immediate Mode)#

This sample demonstrates how to work with the Editor and Engine's widgets in immediate mode (in ImGui-like style) using the EditorImmediate class. Programming in this mode is simple, but it has a number of limitations. This mode is recommended for prototyping or simple plugins.

At the center of the world you'll see four connected points that form a polygon. Click Edit Mode to show manipulators for each point. In this mode, you can move points using manipulators and focus on the polygon using the F key shortcut. The current position of each point (X, Y, Z) is updated each frame in the widget at the top-left corner of the viewport.

Components#

This sample demonstrates how to work with C++ components right in the Editor. Simply click Initialize the ComponentSystem and the C++ Component System will automatically create the NodeRotation component (property). Then you can assign it to any node and it will start rotating immediately (right in the Editor!). The component offers 3 sliders enabling you to adjust rotation rate for X, Y, and Z axes.

Last update: 2024-12-25
Build: ()