This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Режимы вывода изображения
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
API Samples
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
Унифицированный язык шейдеров UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
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
Учебные материалы

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: 25.12.2024
Build: ()