DocumentationДокументация
How to keep material and material function parameters in order: from the first Load to sorting rules and building the plugin.Как навести порядок в параметрах материалов и материальных функций: от первого Load до правил сортировки и сборки плагина.
Overview
Material Params Manager (MPM) is an Unreal Engine editor plugin for keeping the parameters of materials and material functions in order. In one window you can rename parameters, set their order, sort them into groups and see right away how that will look in a Material Instance.

Why you need it
In a material with dozens of parameters, setting the order in the standard editor is tedious: for each parameter you find the node, select it and change Sort Priority and Group in the Details panel. You only see the result after opening a Material Instance.
The plugin gathers all of that in one list.
What it does
- Shows all parameters of a material or function in one window, grouped as in a Material Instance.
- Sorts parameters and groups by the same rules as the Material Instance details panel.
- Renames parameters and groups.
- Changes the order by dragging, with arrows or by typing an index.
- Moves parameters between groups by dragging or from a drop-down list.
- Creates groups, deletes empty ones and evens out indexes.
- Shows real parameter values: texture thumbnails, colors, numbers, switches.
- With a separate checkbox, lets you edit values right in the window.
- Shows parameters from called Material Functions as a preview, so you see the whole final order.
- Applies all changes with one button, with Undo support.
What it works with
| Asset | Support |
|---|---|
| Material | Full |
| Material Function | Full, except group order: a function doesn't have one, see Material Functions |
| Material Instance | Not supported: parameters are defined in the parent material |
Requirements
- Unreal Engine 5.0–5.8, see Compatibility.
- The plugin runs only in the editor and doesn't end up in the game build.
- A native C++ and Slate module: no Python or Editor Utility Widget needed.
Обзор
Material Params Manager — плагин редактора Unreal Engine для наведения порядка в параметрах материалов и материальных функций. В одном окне можно переименовать параметры, настроить их порядок, разложить по группам и сразу увидеть, как это будет выглядеть в Material Instance.

Зачем он нужен
В материале с десятками параметров настройка порядка в стандартном редакторе утомительна: для каждого параметра нужно найти ноду, выделить её и поменять Sort Priority и Group в панели Details. Итог виден только после открытия Material Instance.
Плагин собирает всё это в один список.
Что умеет
- Показывает все параметры материала или функции в одном окне, сгруппированными как в Material Instance.
- Сортирует параметры и группы по тем же правилам, что и панель Details у Material Instance.
- Переименовывает параметры и группы.
- Меняет порядок перетаскиванием, стрелками, вводом индекса.
- Переносит параметры между группами перетаскиванием или через выпадающий список.
- Создаёт группы, удаляет пустые, приводит индексы к ровной последовательности.
- Показывает настоящие значения параметров: миниатюры текстур, цвета, числа, переключатели.
- По отдельному чекбоксу позволяет редактировать значения прямо в окне.
- Показывает параметры из вызванных Material Functions как предпросмотр, чтобы видеть итоговый порядок целиком.
- Применяет все изменения одной кнопкой, с поддержкой Undo.
С чем работает
| Ассет | Поддержка |
|---|---|
| Material | Полная |
| Material Function | Полная, кроме порядка групп: у функции его нет, см. Material Functions |
| Material Instance | Не поддерживается: параметры задаются в родительском материале |
Требования
- Unreal Engine 5.0–5.8, подробнее в разделе Совместимость.
- Плагин работает только в редакторе и не попадает в сборку игры.
- Нативный модуль на C++ и Slate: Python и Editor Utility Widget не нужны.
Installation
The plugin is available on Fab.
Into a project
- Close the editor.
- Create a
Pluginsfolder in the project root if there isn't one. - Copy the
MaterialParamsManagerfolder into it. The result should beYourProject/Plugins/MaterialParamsManager/MaterialParamsManager.uplugin. - Make sure
Binaries/Win64holds a build for your engine version. - Open the project. The plugin turns on automatically.
You can check the installation in Edit → Plugins: the plugin is called Material Params Manager.
A build for each engine version
A C++ plugin is compiled separately for each minor version of Unreal Engine: binaries from 5.6 won't work with 5.7. If the editor offers to rebuild the module on opening, the plugin holds binaries for another version.
The source code is the same for all versions. Building it yourself is covered in Plugin internals and building.
Opening the window
There are two ways:
- the paw button on the editor toolbar, next to the Play buttons;
- the Tools → Material Params Manager menu.


The window opens as a regular editor tab, so you can dock it anywhere in the interface. The toolbar button can be hidden, see Settings.
Установка
Плагин можно получить на Fab.
В проект
- Закройте редактор.
- Создайте в корне проекта папку
Plugins, если её нет. - Скопируйте в неё папку
MaterialParamsManager. Должен получиться путьВашПроект/Plugins/MaterialParamsManager/MaterialParamsManager.uplugin. - Убедитесь, что в
Binaries/Win64лежит сборка для вашей версии движка. - Откройте проект. Плагин включится автоматически.
Проверить установку можно через Edit → Plugins: плагин называется Material Params Manager.
Сборка под каждую версию движка
C++-плагин компилируется отдельно под каждую минорную версию Unreal Engine: бинарники от 5.6 не подойдут к 5.7. Если редактор при открытии предлагает пересобрать модуль, значит, в плагине лежат бинарники другой версии.
Исходный код один для всех версий. Как собрать самому, описано в разделе Устройство плагина и сборка.
Как открыть окно
Есть два способа:
- кнопка с лапкой на панели инструментов редактора, рядом с кнопками Play;
- меню Tools → Material Params Manager.


Окно открывается как обычная вкладка редактора: его можно закрепить в любом месте интерфейса. Кнопку на панели можно скрыть, см. Настройки.
Quick start
Five minutes: load a material, put it in order, apply.
1. Load a material
- Select a material or material function in the Content Browser.
- Open the plugin window (the paw button or Tools → Material Params Manager).
- If the window is already open, press Load.
On opening, the window loads the selected asset by itself if it's suitable.
2. Set the order
- Drag a parameter row to a new place, including into another group.
- Or press the up/down arrow to the right of the row.
- Or double-click the green index and type a number.
The moved row briefly lights up green and the list scrolls to it.

3. Rename and group
- Double-click the name of a parameter or group to rename it.
- The ▾ button to the left of a parameter opens the list of groups to move it to.
- Add Group creates a new group at the top of the list.
4. Apply
Press Apply. The changes are written to the material and the material recompiles. Turn on the Save checkbox next to the button if you want to save the asset to disk right away.
Apply is active only when there's something to apply.
It's best to close this material in the Material Editor before Apply. See Questions and problems.
5. Check the result
Open a Material Instance of this material: the order of groups and parameters will be the same as in the plugin window.
Changed your mind before Apply? Press Load and unsaved order and name edits are dropped.
Быстрый старт
За пять минут: загрузить материал, навести порядок, применить.
1. Загрузите материал
- Выделите материал или материальную функцию в Content Browser.
- Откройте окно плагина (кнопка с лапкой или Tools → Material Params Manager).
- Если окно уже открыто, нажмите Load.
При открытии окно само загрузит выделенный ассет, если он подходит.
2. Настройте порядок
- Перетащите строку параметра на новое место, в том числе в другую группу.
- Или нажмите стрелку вверх/вниз справа от строки.
- Или дважды кликните по зелёному индексу и введите число.
Перенесённая строка коротко подсвечивается зелёным, а список прокручивается к ней.

3. Переименуйте и сгруппируйте
- Двойной клик по имени параметра или группы включает переименование.
- Кнопка ▾ слева от параметра открывает список групп для переноса.
- Add Group создаёт новую группу вверху списка.
4. Примените
Нажмите Apply. Изменения записываются в материал, материал пересобирается. Включите чекбокс Save рядом с кнопкой, если хотите сразу сохранить ассет на диск.
Кнопка Apply активна, только когда есть что применять.
Перед Apply лучше закрыть этот материал в Material Editor. Подробнее в разделе Вопросы и проблемы.
5. Проверьте результат
Откройте Material Instance этого материала: порядок групп и параметров будет таким же, как в окне плагина.
Передумали до Apply? Нажмите Load, и несохранённые правки порядка и имён сбросятся.
Interface

The window has three parts: the header, the parameter list and the bottom bar. The layout follows the Material Instance details panel.
Header

| Element | Purpose |
|---|---|
| Selected Material: … | Name of the loaded asset. Shows a hint while nothing is loaded |
| Path: … | Path to the asset |
| Show Preview | Shows or hides the value column. On by default |
| Edit Values | Allows changing values in the window. Off by default, see Values and preview |
| Hide Functions | Hides parameters from called functions. Available only if there are any, see Material Functions |
| Collapse/Expand | Collapses or expands all groups |
Group row
| Element | Purpose |
|---|---|
| Arrow on the left | Collapses and expands the group. Double-clicking the row doesn't collapse it |
| Handle (six dots) | Drag icon. Shown if the group's order can be changed |
| (f) | All parameters of the group came from functions |
| Green number | Group index (Group Sort Priority). Double-click to edit |
| Name | Double-click to rename |
| Normalize Indexes | Evens out the indexes of the group's parameters. Shown if the group has at least one parameter of the asset itself |
| Trash icon | Deletes the group. Shown only for an empty group |
| Up/down arrows | Move the group along the list |
Engine's common categories
The engine puts parameters without a group into categories such as Global Scalar Parameter Values or Global Vector Parameter Values. The names of these categories are grey: they aren't real groups and can't be renamed or moved.

Parameter row

| Element | Purpose |
|---|---|
| Paw in the indent | Appears when you hover over a parameter that can be moved |
| ▾ | Drop-down list of groups to move to |
| Handle | Drag icon |
| (f) | The parameter came from a function and is view-only |
| Green number | Parameter index (Sort Priority) |
| Name | Double-click to rename |
| Value | The real value of the parameter |
| Up/down arrows | Move the parameter within the group |
The border between the name and value columns can be moved, as in the Details panel.
Bottom bar

| Element | Purpose |
|---|---|
| Load | Loads the asset selected in the Content Browser. If nothing is selected, re-reads the current one |
| Apply | Writes changes to the asset. Active when there's something to apply |
| Save | Together with Apply, saves the asset to disk right away |
| Add Group | Creates a new group |
Animations
| Event | What happens |
|---|---|
| Hovering over a row | The row smoothly highlights, and a parameter shows its paw |
| Moving a row | The row turns muted green and returns to its normal color within 0.3 seconds |
| Invalid name or index | The row briefly flashes red |
Интерфейс

Окно состоит из трёх частей: шапка, список параметров и нижняя панель. Расположение повторяет панель Details у Material Instance.
Шапка

| Элемент | Назначение |
|---|---|
| Selected Material: … | Имя загруженного ассета. Пока ничего не загружено, здесь подсказка |
| Path: … | Путь к ассету |
| Show Preview | Показывает или скрывает колонку значений. По умолчанию включён |
| Edit Values | Разрешает менять значения в окне. По умолчанию выключен, см. Значения и превью |
| Hide Functions | Скрывает параметры из вызванных функций. Доступен, только если такие параметры есть, см. Material Functions |
| Collapse/Expand | Сворачивает или разворачивает все группы |
Строка группы
| Элемент | Назначение |
|---|---|
| Стрелка слева | Сворачивает и разворачивает группу. Двойной клик по строке группу не сворачивает |
| Ручка (шесть точек) | Значок перетаскивания. Показывается, если порядок группы можно менять |
| (f) | Все параметры группы пришли из функций |
| Зелёное число | Индекс группы (Group Sort Priority). Двойной клик включает редактирование |
| Имя | Двойной клик включает переименование |
| Normalize Indexes | Выравнивает индексы параметров группы. Показывается, если в группе есть хотя бы один параметр самого ассета |
| Значок корзины | Удаляет группу. Показывается только у пустой группы |
| Стрелки вверх/вниз | Двигают группу по списку |
Общие категории движка
Параметры без группы движок сам раскладывает в категории вроде Global Scalar Parameter Values или Global Vector Parameter Values. Названия таких категорий написаны серым: это не настоящие группы, их нельзя переименовать или передвинуть.

Строка параметра

| Элемент | Назначение |
|---|---|
| Лапка в отступе | Появляется при наведении на параметр, который можно перемещать |
| ▾ | Выпадающий список групп для переноса |
| Ручка | Значок перетаскивания |
| (f) | Параметр пришёл из функции, он только для просмотра |
| Зелёное число | Индекс параметра (Sort Priority) |
| Имя | Двойной клик включает переименование |
| Значение | Настоящее значение параметра |
| Стрелки вверх/вниз | Двигают параметр внутри группы |
Граница между колонками имени и значения двигается, как в панели Details.
Нижняя панель

| Элемент | Назначение |
|---|---|
| Load | Загружает ассет, выделенный в Content Browser. Если ничего не выделено, перечитывает текущий |
| Apply | Записывает изменения в ассет. Активна, когда есть что применять |
| Save | Вместе с Apply сразу сохраняет ассет на диск |
| Add Group | Создаёт новую группу |
Анимации
| Событие | Что происходит |
|---|---|
| Наведение на строку | Строка плавно подсвечивается, у параметра проявляется лапка |
| Перенос строки | Строка становится приглушённо-зелёной и за 0,3 секунды возвращается к обычному цвету |
| Некорректное имя или индекс | Строка коротко мигает красным |
Editing parameters
Order, name and group edits stay in the window until you press Apply. Pressing Load cancels them.
Changing the order
Dragging
Drag a parameter row and release it:
- between other parameters: the parameter takes that place;
- on a group header: the parameter goes to the end of that group.
A light blue line shows where the parameter will land.

After the move the index is chosen automatically and the row briefly lights up.

In the example, GradientRow with index 20 is moved below LabelFont and gets index 31.
Arrows
The arrows on the right move a parameter one position within the group. With Hide Functions on, the arrows jump over hidden rows.
Typing an index
Double-click the green number and type an integer; negative values are allowed. After you enter it, the row takes its place in the sorting.
How the index is chosen on a move
- The parameter takes the index of the neighbor above, or of the neighbor below if it's inserted first.
- The indexes of the following parameters are raised when needed, so the order holds.
- With equal indexes the engine sorts by name. The plugin accounts for this: when alphabetical order would put the row in the wrong place, the index goes up by one.
So equal indexes can sit side by side, and that's fine. Normalize Indexes makes them even.
Moving to another group
Besides dragging, there's a drop-down list. It's handy when there are many groups.
- Press ▾ to the left of a parameter.
- Choose a group. The current one is marked with a dot.

The No Group item removes the parameter from its group, and it goes to the engine's common category.
If the target group is collapsed, it expands and the list scrolls to the moved row.
Renaming
Double-click a name, type a new one and press Enter.
The name is rejected and the row flashes red if it's:
- empty or equal to
None; - the same as the name of a parameter of another type: the engine would silently rename it anyway.
The same name on parameters of one type is allowed: the engine treats them as one parameter. After Apply and Load such parameters appear as one row.
Applying
Apply does the following:
- Writes the new names, groups and indexes to all nodes of the parameter.
- Writes the group order to the material.
- Recompiles the material or updates the function.
- If Save is on, saves the asset to disk.
- Re-reads the asset and shows a notification with the number of changes.
The operation can be undone with Ctrl+Z (Edit → Undo), and the window updates.
Редактирование параметров
Правки порядка, имён и групп хранятся в окне, пока вы не нажмёте Apply. Нажатие Load отменяет их.
Изменение порядка
Перетаскивание
Потяните строку параметра и отпустите:
- между другими параметрами — параметр встанет на это место;
- на заголовок группы — параметр перейдёт в конец этой группы.
Голубая линия показывает, куда встанет параметр.

После переноса индекс подбирается автоматически, а строка коротко подсвечивается.

В примере GradientRow с индексом 20 перенесён ниже LabelFont и получил индекс 31.
Стрелки
Стрелки справа двигают параметр на одну позицию внутри группы. Если включён Hide Functions, стрелки перепрыгивают скрытые строки.
Ввод индекса
Дважды кликните по зелёному числу и введите целое значение, допустимы и отрицательные. После ввода строка встанет на своё место в сортировке.
Как подбирается индекс при переносе
- Параметр получает индекс соседа сверху, а если вставлен первым — индекс соседа снизу.
- Индексы следующих параметров при необходимости увеличиваются, чтобы порядок не нарушился.
- Если индексы равны, движок сортирует по имени. Плагин учитывает это: когда по алфавиту строка оказалась бы не на своём месте, индекс увеличивается на единицу.
Поэтому рядом могут стоять одинаковые индексы, это нормально. Сделать их ровными можно кнопкой Normalize Indexes.
Перенос в другую группу
Кроме перетаскивания, есть выпадающий список. Он удобен, когда групп много.
- Нажмите ▾ слева от параметра.
- Выберите группу. Текущая отмечена точкой.

Пункт No Group убирает параметр из группы, и он попадает в общую категорию движка.
Если целевая группа свёрнута, она развернётся, а список прокрутится к перенесённой строке.
Переименование
Дважды кликните по имени, введите новое и нажмите Enter.
Имя не будет принято, а строка мигнёт красным, если оно:
- пустое или равно
None; - совпадает с именем параметра другого типа: движок всё равно молча переименовал бы его.
Одинаковое имя у параметров одного типа допустимо: движок считает их одним параметром. После Apply и Load такие параметры покажутся одной строкой.
Применение
Apply выполняет следующее:
- Записывает новые имена, группы и индексы во все ноды параметра.
- Записывает порядок групп в материал.
- Пересобирает материал или обновляет функцию.
- Если включён Save, сохраняет ассет на диск.
- Перечитывает ассет и показывает уведомление с числом изменений.
Операцию можно отменить через Ctrl+Z (Edit → Undo), окно при этом обновится.
Groups
A group is the value of a parameter's Group field. The group index sets its place in the Material Instance list.
Creating
Add Group creates a New Group at the top of the list and scrolls the window to it. If the name is taken, a number is added.

A group becomes real only once it has parameters. An empty group exists only in the window and disappears after Load or Apply.
Renaming
Double-click the group name. All its parameters get the new name.
A group can't be renamed if:
- the name is empty, equal to
Noneor already taken by another group (the row flashes red); - the group has a parameter from a called function: its group can be changed only in the function itself.
Changing the order
Available only for materials:
- drag the group row above or below another group;
- press the arrows on the right;
- double-click the green index and type a number.
With equal indexes the engine sorts groups by name.
Normalize Indexes
This button in a group row renumbers its parameters in sequence, starting from zero. The order doesn't change, and the indexes become even: 0, 1, 2….
The indexes of parameters from functions don't change, and the numbering goes around them. The button is hidden for groups that have only parameters from functions.
Deleting
An empty group shows a trash icon instead of Normalize Indexes. A group with parameters can't be deleted: move the parameters out first.
Engine's common categories
The engine shows parameters without a group in categories such as Global Scalar Parameter Values, Global Vector Parameter Values and Global Texture Parameter Values. Their names are grey in the window.
- Such a category can't be renamed or moved.
- A parameter goes to the category of its type, not to one of your choice.
- To remove a parameter from a group, use the No Group item.
How the categories are placed in the list is described in How the order is calculated.
Группы
Группа — это значение поля Group у параметра. Индекс группы определяет её место в списке Material Instance.
Создание
Add Group создаёт группу New Group вверху списка и прокручивает окно к ней. Если имя занято, добавляется номер.

Группа становится настоящей, только когда в ней появятся параметры. Пустая группа существует лишь в окне и после Load или Apply исчезнет.
Переименование
Двойной клик по имени группы. Новое имя получат все её параметры.
Группу нельзя переименовать, если:
- имя пустое, равно
Noneили уже занято другой группой (строка мигнёт красным); - в группе есть параметр из вызванной функции: его группу можно поменять только в самой функции.
Изменение порядка
Доступно только для материалов:
- перетащите строку группы выше или ниже другой группы;
- нажмите стрелки справа;
- дважды кликните по зелёному индексу и введите число.
Если индексы групп равны, движок сортирует их по имени.
Normalize Indexes
Кнопка в строке группы перенумеровывает её параметры подряд, начиная с нуля. Порядок не меняется, индексы становятся ровными: 0, 1, 2….
Индексы параметров из функций не меняются, нумерация их обходит. Кнопка скрыта у групп, где есть только параметры из функций.
Удаление
У пустой группы вместо Normalize Indexes появляется значок корзины. Группу с параметрами удалить нельзя: сначала перенесите параметры.
Общие категории движка
Параметры без группы движок показывает в категориях вроде Global Scalar Parameter Values, Global Vector Parameter Values и Global Texture Parameter Values. В окне их названия серые.
- Переименовать или передвинуть такую категорию нельзя.
- Параметр попадает в категорию своего типа, а не в любую на выбор.
- Чтобы убрать параметр из группы, используйте пункт No Group.
Как именно категории располагаются в списке, описано в разделе Как считается порядок.
Values and preview
To the right of each parameter is its real value, in the same widgets as the Details panel: texture thumbnails, color swatches, numbers, switches.
Show Preview
This header checkbox hides the value column when you only need a compact list of names. On by default.
Edit Values
By default values are display-only: the widgets are dimmed and don't respond, so you can't change anything by accident while dragging.

Turn on Edit Values and the values become active.

How values differ from order and names
| Order, names, groups | Values | |
|---|---|---|
| When written | On pressing Apply | Right away on change |
| How to undo | Press Load | Ctrl+Z (Edit → Undo) |
| Is Apply needed | Yes | Yes, to recompile the material |
Important: Load doesn't undo changed values, because they're already written to the material. Use Undo.
Values of parameters from called functions can't be changed, see Material Functions.
How different types are shown
| Type | What you see |
|---|---|
| Scalar | Number field |
| Vector | Color swatch |
| Double Vector | Four number fields |
| Textures, Font, RVT, Sparse Volume, Texture Collection | Thumbnail and asset picker |
| Curve Atlas Row | Curve thumbnail and asset picker |
| Static Bool and Static Switch | Checkbox |
| Channel Mask | Drop-down list of channels |
| Static Component Mask | Four checkboxes R, G, B, A |
| Collection Parameter | Material Parameter Collection asset |
The full list is in Parameter types.
Значения и превью
Справа от каждого параметра показано его настоящее значение теми же виджетами, что и в панели Details: миниатюры текстур, цветовые плашки, числа, переключатели.
Show Preview
Чекбокс в шапке скрывает колонку значений, если нужен только компактный список имён. По умолчанию включён.
Edit Values
По умолчанию значения только показываются: виджеты затемнены и не реагируют, чтобы при перетаскивании случайно ничего не поменять.

Если включить Edit Values, значения станут активными.

Чем значения отличаются от порядка и имён
| Порядок, имена, группы | Значения | |
|---|---|---|
| Когда записываются | По нажатию Apply | Сразу при изменении |
| Как отменить | Нажать Load | Ctrl+Z (Edit → Undo) |
| Нужен ли Apply | Да | Да, чтобы пересобрать материал |
Важно: Load не отменяет изменённые значения, потому что они уже записаны в материал. Используйте Undo.
Значения параметров из вызванных функций изменить нельзя, см. Material Functions.
Как показываются разные типы
| Тип | Что видно |
|---|---|
| Scalar | Числовое поле |
| Vector | Цветовая плашка |
| Double Vector | Четыре числовых поля |
| Текстуры, Font, RVT, Sparse Volume, Texture Collection | Миниатюра и выбор ассета |
| Curve Atlas Row | Миниатюра кривой и выбор ассета |
| Static Bool и Static Switch | Чекбокс |
| Channel Mask | Выпадающий список каналов |
| Static Component Mask | Четыре чекбокса R, G, B, A |
| Collection Parameter | Ассет Material Parameter Collection |
Полный список есть в разделе Типы параметров.
Material Functions
There are two different cases: you opened the function itself, or a material that calls it.
The function itself is loaded
The plugin treats a function like a material: parameters can be renamed, sorted and moved.

There's one difference: groups have no indexes or arrows. A function has no group order data, so groups are shown alphabetically. Group order is set in the material that calls the function.
A material calling the function is loaded
A Material Instance shows the material's parameters and those of all called functions mixed together. The plugin does the same, so you see the whole order.

Parameters from functions are marked (f) to the left of the index. They're view-only:
- they can't be renamed or moved, and their values can't be changed;
- they have no arrows, handle or group drop-down;
- the paw doesn't appear on hover.
To change such a parameter, load the function itself into the plugin. The changes will affect all materials that use it.
For example: SurfaceWear with index 15 from a function sits between the material's own Roughness (10) and Metallic (20) in the Surface group.
Groups with parameters from functions
| Group | (f) mark | Normalize Indexes | Renaming | Group index |
|---|---|---|---|---|
| Own parameters only | no | yes | yes | yes |
| Own and from functions | no | yes, leaves function parameters alone | no | yes |
| From functions only | yes | no | no | UE 5.8: yes. UE 5.0–5.7: no |
The group index is stored in the material, so changing it is safe: the function doesn't change. On UE 5.0–5.7 the index of a group with only function parameters is locked, because the Material Editor would reset that data on update. In 5.8 the engine handles such groups properly.
Hide Functions
This header checkbox hides parameters from functions and groups that have no other parameters. It's handy when you only need to set up your own parameters.

The checkbox is available only if the material has parameters from functions. It doesn't affect the data, and a Material Instance shows everything as before.
Material Functions
Есть два разных случая: вы открыли саму функцию или материал, который её вызывает.
Загружена сама функция
Плагин работает с функцией как с материалом: параметры можно переименовывать, сортировать и переносить.

Отличие одно: у групп нет индексов и стрелок. У функции нет данных о порядке групп, поэтому при показе они идут по алфавиту. Порядок групп задаётся в материале, который вызывает функцию.
Загружен материал, вызывающий функцию
Material Instance показывает и параметры материала, и параметры всех вызванных функций вперемешку. Плагин делает так же, чтобы порядок был виден целиком.

Параметры из функций отмечены (f) слева от индекса. Они только для просмотра:
- нельзя переименовать, переместить или поменять значение;
- нет стрелок, ручки и выпадающего списка групп;
- при наведении не появляется лапка.
Чтобы изменить такой параметр, загрузите в плагин саму функцию. Изменения повлияют на все материалы, которые её используют.
На примере: SurfaceWear с индексом 15 из функции встал между собственными параметрами Roughness (10) и Metallic (20) группы Surface.
Группы с параметрами из функций
| Группа | Пометка (f) | Normalize Indexes | Переименование | Индекс группы |
|---|---|---|---|---|
| Только свои параметры | нет | есть | можно | можно |
| Свои и из функций | нет | есть, параметры функций не трогает | нельзя | можно |
| Только из функций | есть | нет | нельзя | UE 5.8: можно. UE 5.0–5.7: нельзя |
Индекс группы хранится в материале, поэтому менять его безопасно: функция не изменится. На UE 5.0–5.7 индекс группы, где есть только параметры из функций, заблокирован: редактор материалов при обновлении сбросит такие данные. В 5.8 движок учитывает такие группы штатно.
Hide Functions
Чекбокс в шапке скрывает параметры из функций и группы, в которых других параметров нет. Удобно, когда нужно настроить только собственные параметры.

Чекбокс доступен, только если в материале есть параметры из функций. На сами данные он не влияет, Material Instance покажет всё по-прежнему.
How the order is calculated
The plugin's main job is to show the order as a user will see it in a Material Instance. The rules follow the engine code in UMaterialEditorInstanceConstant::RegenerateArrays.

Order of parameters within a group
- By Sort Priority, ascending.
- With equal values, by name, case-insensitive.
Order of groups
- By Group Sort Priority, ascending.
- With equal values, by name, case-insensitive.
If a group has no order entry, 0 is used.
Group order is stored in the material, in the Parameter Group Data list. The plugin updates it on Apply.
Parameters without a group
If a parameter has no group, the engine shows it in a category by type, with the Global prefix:
| Parameter type | Category |
|---|---|
| Scalar, Curve Atlas Row | Global Scalar Parameter Values |
| Vector, Channel Mask | Global Vector Parameter Values |
| Double Vector | Global Double Vector Parameter Values |
| All textures, RVT, Sparse Volume, Texture Collection | Global Texture Parameter Values |
| Static Bool, Static Switch | Global Static Switch Parameter Values |
| Static Component Mask | Global Static Component Mask Parameter Values |
| Font | Global Font Parameter Values |
| Collection Parameter | Global Parameter Collection Values |
These categories take part in the common group sort, and their index is always 0. So they sit alphabetically among groups with index 0, not at the end of the list. A group with a negative index is above them, and one with a positive index is below.

Engine setting
The grouping depends on the UseOldStyleMICEditorGroups setting in the [/Script/UnrealEd.EditorEngine] section of Engine.ini. It's on by default. If it's turned off, all parameters without a group go to a single Global category. The plugin reads this setting and takes it into account.
Several nodes with one name
The engine treats nodes of one type with the same name as one parameter. They're shown as one row in the window, where:
- the smallest Sort Priority of all nodes is used;
- the first non-empty group is used;
- on Apply, changes are written to all nodes.
Active and inactive parameters
The plugin shows all parameters, including those not connected to the material output. A Material Instance hides inactive parameters by default; the Show Inactive button in its editor shows them. With Show Inactive on, the group contents and order match the plugin window.
Как считается порядок
Главная задача плагина — показать порядок таким, каким его увидит пользователь в Material Instance. Правила повторяют код движка UMaterialEditorInstanceConstant::RegenerateArrays.

Порядок параметров внутри группы
- По Sort Priority, по возрастанию.
- При равных значениях по имени, без учёта регистра.
Порядок групп
- По Group Sort Priority, по возрастанию.
- При равных значениях по имени, без учёта регистра.
Если для группы нет записи о порядке, используется 0.
Порядок групп хранится в материале, в списке Parameter Group Data. Плагин обновляет его при Apply.
Параметры без группы
Если параметру не назначена группа, движок показывает его в категории по типу, с префиксом Global:
| Тип параметра | Категория |
|---|---|
| Scalar, Curve Atlas Row | Global Scalar Parameter Values |
| Vector, Channel Mask | Global Vector Parameter Values |
| Double Vector | Global Double Vector Parameter Values |
| Все текстуры, RVT, Sparse Volume, Texture Collection | Global Texture Parameter Values |
| Static Bool, Static Switch | Global Static Switch Parameter Values |
| Static Component Mask | Global Static Component Mask Parameter Values |
| Font | Global Font Parameter Values |
| Collection Parameter | Global Parameter Collection Values |
Такие категории участвуют в общей сортировке групп, а индекс у них всегда 0. Поэтому они стоят по алфавиту среди групп с индексом 0, а не в конце списка. Группа с отрицательным индексом окажется выше них, с положительным — ниже.

Настройка движка
Группировка зависит от настройки UseOldStyleMICEditorGroups в секции [/Script/UnrealEd.EditorEngine] файла Engine.ini. По умолчанию она включена. Если её выключить, все параметры без группы попадут в одну категорию Global. Плагин читает эту настройку и учитывает её.
Несколько нод с одним именем
Ноды одного типа с одинаковым именем движок считает одним параметром. В окне они показаны одной строкой, причём:
- берётся наименьший Sort Priority из всех нод;
- берётся первая непустая группа;
- при Apply изменения записываются во все ноды.
Активные и неактивные параметры
Плагин показывает все параметры, включая не подключённые к выходу материала. Material Instance по умолчанию скрывает неактивные параметры, показать их можно кнопкой Show Inactive в его редакторе. С включённой Show Inactive состав групп и порядок совпадают с окном плагина.
Parameter types
The plugin identifies a parameter not from a list of known classes but by a common trait: the node has a parameter name and Group and SortPriority fields. So types added in new engine versions are picked up without code changes.
A node without Group and SortPriority fields isn't shown. Collection Transform is one example.
Supported types
| Type | Node class | Label | Value in the window | In the engine |
|---|---|---|---|---|
| Scalar | MaterialExpressionScalarParameter | SCALAR | Number | 5.0+ |
| Vector | MaterialExpressionVectorParameter | VECTOR | Color | 5.0+ |
| Double Vector | MaterialExpressionDoubleVectorParameter | VECTOR4 | 4 numbers | 5.0+ |
| Texture 2D | MaterialExpressionTextureSampleParameter2D | TEX_2D | Thumbnail | 5.0+ |
| Texture Object | MaterialExpressionTextureObjectParameter | TEX_OBJ | Thumbnail | 5.0+ |
| Antialiased Texture Mask | MaterialExpressionAntialiasedTextureMask | TEX_2D | Thumbnail | 5.0+ |
| Texture SubUV | MaterialExpressionTextureSampleParameterSubUV | TEX_SUBUV | Thumbnail | 5.0+ |
| Texture Cube | MaterialExpressionTextureSampleParameterCube | TEX_CUBE | Thumbnail | 5.0+ |
| Texture Cube Array | MaterialExpressionTextureSampleParameterCubeArray | TEX_CUBE_ARRAY | Thumbnail | 5.0+ |
| Texture 2D Array | MaterialExpressionTextureSampleParameter2DArray | TEX_2D_ARRAY | Thumbnail | 5.0+ |
| Texture Volume | MaterialExpressionTextureSampleParameterVolume | TEX_VOL | Thumbnail | 5.0+ |
| Runtime Virtual Texture | MaterialExpressionRuntimeVirtualTextureSampleParameter | RVT | Thumbnail | 5.0+ |
| Sparse Volume Texture | MaterialExpressionSparseVolumeTextureSampleParameter | SVT | Asset picker | 5.2+ |
| Sparse Volume Texture Object | MaterialExpressionSparseVolumeTextureObjectParameter | SVT | Asset picker | 5.2+ |
| Texture Collection | MaterialExpressionTextureCollectionParameter | TEX_COLLECTION | Asset picker | 5.5+ |
| Static Bool | MaterialExpressionStaticBoolParameter | STATIC_BOOL | Checkbox | 5.0+ |
| Static Switch | MaterialExpressionStaticSwitchParameter | SWITCH | Checkbox | 5.0+ |
| Channel Mask | MaterialExpressionChannelMaskParameter | CH_MASK | R/G/B/A list | 5.0+ |
| Static Component Mask | MaterialExpressionStaticComponentMaskParameter | MASK | 4 checkboxes | 5.0+ |
| Curve Atlas Row | MaterialExpressionCurveAtlasRowParameter | CURVE | Curve | 5.0+ |
| Font | MaterialExpressionFontSampleParameter | FONT | Font | 5.0+ |
| Collection Parameter | MaterialExpressionCollectionParameter | COLLECTION | Collection | if this engine version has the Group and SortPriority fields |
The "In the engine" column for Sparse Volume and Texture Collection is based on the header files present in UE 5.0–5.8.
The label is used when checking for name clashes between types. It isn't shown in the interface at the moment.
An unknown new type that has the required fields also appears in the list, but its value may be missing from the column.
Типы параметров
Плагин определяет параметр не по списку известных классов, а по общему признаку: у ноды есть имя параметра и поля Group и SortPriority. Поэтому типы, появившиеся в новых версиях движка, подхватываются без изменения кода.
Нода без полей Group и SortPriority не показывается. Например, Collection Transform.
Поддерживаемые типы
| Тип | Класс ноды | Метка | Значение в окне | Есть в движке |
|---|---|---|---|---|
| Scalar | MaterialExpressionScalarParameter | SCALAR | Число | 5.0+ |
| Vector | MaterialExpressionVectorParameter | VECTOR | Цвет | 5.0+ |
| Double Vector | MaterialExpressionDoubleVectorParameter | VECTOR4 | 4 числа | 5.0+ |
| Texture 2D | MaterialExpressionTextureSampleParameter2D | TEX_2D | Миниатюра | 5.0+ |
| Texture Object | MaterialExpressionTextureObjectParameter | TEX_OBJ | Миниатюра | 5.0+ |
| Antialiased Texture Mask | MaterialExpressionAntialiasedTextureMask | TEX_2D | Миниатюра | 5.0+ |
| Texture SubUV | MaterialExpressionTextureSampleParameterSubUV | TEX_SUBUV | Миниатюра | 5.0+ |
| Texture Cube | MaterialExpressionTextureSampleParameterCube | TEX_CUBE | Миниатюра | 5.0+ |
| Texture Cube Array | MaterialExpressionTextureSampleParameterCubeArray | TEX_CUBE_ARRAY | Миниатюра | 5.0+ |
| Texture 2D Array | MaterialExpressionTextureSampleParameter2DArray | TEX_2D_ARRAY | Миниатюра | 5.0+ |
| Texture Volume | MaterialExpressionTextureSampleParameterVolume | TEX_VOL | Миниатюра | 5.0+ |
| Runtime Virtual Texture | MaterialExpressionRuntimeVirtualTextureSampleParameter | RVT | Миниатюра | 5.0+ |
| Sparse Volume Texture | MaterialExpressionSparseVolumeTextureSampleParameter | SVT | Выбор ассета | 5.2+ |
| Sparse Volume Texture Object | MaterialExpressionSparseVolumeTextureObjectParameter | SVT | Выбор ассета | 5.2+ |
| Texture Collection | MaterialExpressionTextureCollectionParameter | TEX_COLLECTION | Выбор ассета | 5.5+ |
| Static Bool | MaterialExpressionStaticBoolParameter | STATIC_BOOL | Чекбокс | 5.0+ |
| Static Switch | MaterialExpressionStaticSwitchParameter | SWITCH | Чекбокс | 5.0+ |
| Channel Mask | MaterialExpressionChannelMaskParameter | CH_MASK | Список R/G/B/A | 5.0+ |
| Static Component Mask | MaterialExpressionStaticComponentMaskParameter | MASK | 4 чекбокса | 5.0+ |
| Curve Atlas Row | MaterialExpressionCurveAtlasRowParameter | CURVE | Кривая | 5.0+ |
| Font | MaterialExpressionFontSampleParameter | FONT | Шрифт | 5.0+ |
| Collection Parameter | MaterialExpressionCollectionParameter | COLLECTION | Коллекция | при наличии полей Group и SortPriority в этой версии движка |
Столбец «Есть в движке» для Sparse Volume и Texture Collection определён по наличию заголовочных файлов в UE 5.0–5.8.
Метка используется при проверке совпадения имён разных типов. В интерфейсе она сейчас не показывается.
Неизвестный новый тип, у которого есть нужные поля, тоже появится в списке, но значение в колонке может отсутствовать.
Settings
The setting is in Edit → Editor Preferences → Plugins → Material Params Manager.

| Setting | Section | Default | Description |
|---|---|---|---|
| Show Toolbar Button | Toolbar | On | Shows the paw button on the toolbar |
The button hides right away, no restart needed. The Tools → Material Params Manager menu item always stays.
The setting is stored per user and per project, in Saved/Config/WindowsEditor/EditorPerProjectUserSettings.ini.
The window checkboxes (Show Preview, Edit Values, Hide Functions, Save) aren't kept between sessions and return to their defaults when the window opens.
Настройки
Настройка находится в Edit → Editor Preferences → Plugins → Material Params Manager.

| Настройка | Раздел | По умолчанию | Описание |
|---|---|---|---|
| Show Toolbar Button | Toolbar | Включено | Показывает кнопку с лапкой на панели инструментов |
Кнопка скрывается сразу, перезапуск не нужен. Пункт в меню Tools → Material Params Manager остаётся всегда.
Настройка хранится отдельно для каждого пользователя и проекта, в файле Saved/Config/WindowsEditor/EditorPerProjectUserSettings.ini.
Чекбоксы в окне (Show Preview, Edit Values, Hide Functions, Save) не сохраняются между сессиями и при открытии окна возвращаются к значениям по умолчанию.
Compatibility
Engine versions
The plugin is built from one source code for all versions.
| UE version | Build checked | Notes |
|---|---|---|
| 5.0 | Yes | The group collapse arrow sits left of the row background: the engine doesn't allow replacing it |
| 5.1 | Yes | |
| 5.2 | Yes | |
| 5.3 | Yes | |
| 5.4 | Yes | |
| 5.5 | Yes | |
| 5.6 | Yes | |
| 5.7 | Yes | |
| 5.8 | Yes | Main development version |
Separate test projects were created to check it in the editor on each version.
Differences between versions
| What | Difference |
|---|---|
| Index of a group with only function parameters | Editable on 5.8, locked on 5.0–5.7 |
| Sparse Volume Texture | Available from 5.2 |
| Texture Collection | Available from 5.5 |
All differences in the code are collected in one file, see Plugin internals and building.
Platforms
The plugin runs only in the editor. It's tested on Windows 64-bit. Builds on Linux and macOS haven't been tested.
Совместимость
Версии движка
Плагин собирается из одного исходного кода для всех версий.
| Версия UE | Сборка проверена | Особенности |
|---|---|---|
| 5.0 | Да | Стрелка сворачивания группы стоит левее фона строки: движок не даёт её заменить |
| 5.1 | Да | |
| 5.2 | Да | |
| 5.3 | Да | |
| 5.4 | Да | |
| 5.5 | Да | |
| 5.6 | Да | |
| 5.7 | Да | |
| 5.8 | Да | Основная версия разработки |
Для проверки в редакторе на каждой версии создавались отдельные тестовые проекты.
Различия между версиями
| Что | Отличие |
|---|---|
| Индекс группы, где только параметры из функций | Редактируется на 5.8, заблокирован на 5.0–5.7 |
| Sparse Volume Texture | Есть начиная с 5.2 |
| Texture Collection | Есть начиная с 5.5 |
Все различия в коде собраны в одном файле, см. Устройство плагина и сборка.
Платформы
Плагин работает только в редакторе. Проверен на Windows 64-bit. На Linux и macOS сборка не проверялась.
Limitations
| Limitation | Reason or what to do |
|---|---|
| Material Instance isn't supported | Groups, order and names are set in the parent material |
| Parameters from called functions can't be changed | A function is shared by many materials. Load the function itself into the plugin |
| A function has no group order | The material stores it, not the function |
| Material Layers aren't shown | The plugin works with the parameters of a material and its functions |
| The plugin also shows inactive parameters | A Material Instance hides them by default, see How the order is calculated |
| Load reads the asset from editor memory | Outside changes to the file on disk (another editor instance, version control) aren't visible until Unreal reloads the asset |
| Load doesn't undo changed values | Values are written right away, use Undo |
| An empty group isn't saved | A group exists only while it has parameters |
| Parameters without a group can't be sent to any category you like | The parameter's type sets the category |
| A group with a function parameter can't be renamed | The parameter's group is stored in the function itself |
| Applying recompiles the material | For big materials this can take time, like a regular Apply in the editor |
| Checkbox state isn't kept | The values reset when the window opens |
Ограничения
| Ограничение | Причина или что делать |
|---|---|
| Material Instance не поддерживается | Группы, порядок и имена задаются в родительском материале |
| Параметры из вызванных функций нельзя менять | Функция общая для многих материалов. Загрузите в плагин саму функцию |
| У функции нет порядка групп | Его хранит материал, а не функция |
| Material Layers не показываются | Плагин работает с параметрами материала и его функций |
| Плагин показывает и неактивные параметры | Material Instance по умолчанию скрывает их, см. Как считается порядок |
| Load читает ассет из памяти редактора | Изменения файла на диске извне (другой экземпляр редактора, система контроля версий) не видны, пока Unreal не перезагрузит ассет |
| Load не отменяет изменённые значения | Значения записываются сразу, используйте Undo |
| Пустая группа не сохраняется | Группа существует, только пока в ней есть параметры |
| Параметры без группы нельзя отправить в произвольную категорию | Категорию определяет тип параметра |
| Группу с параметром из функции нельзя переименовать | Группа параметра хранится в самой функции |
| Применение пересобирает материал | Для больших материалов это может занять время, как и обычный Apply в редакторе |
| Состояние чекбоксов не сохраняется | Значения сбрасываются при открытии окна |
Questions and problems
Why does the order in the window differ from the Material Editor?
The window shows the Material Instance order. The parameter panel in the Material Editor itself works differently. Compare with a Material Instance.
I pressed Apply and the changes disappeared
Most likely the material was open in the Material Editor. The editor works with its own copy of the material, and its Apply button overwrites the asset with that copy. The plugin warns about this with a notification.
Close the Material Editor without applying, or close it before using the plugin.
A parameter from a function can't be moved
Rows marked (f) are view-only. Load the function itself into the plugin. See Material Functions.
Why does a Material Instance have fewer parameters than the window?
A Material Instance by default hides parameters not connected to the material output. Turn on Show Inactive in its editor and the list will match the plugin window.
Why is Global Vector Parameter Values in the middle of the list?
These categories sort together with regular groups alphabetically, and a Material Instance shows them the same way. See How the order is calculated.
A row flashed red
The new name or index wasn't accepted. Check that the name isn't empty, isn't None and isn't taken by a group or a parameter of another type, and that the index is a number.
Are equal indexes an error?
No. With equal indexes the engine sorts by name. Normalize Indexes evens them out.
Load shows a warning
An asset the plugin doesn't support is selected, such as a Material Instance. Select a Material or Material Function.
The editor offers to rebuild the MaterialParamsManager module
The plugin folder holds binaries for another engine version. You need a build for your version, see Installation.
Hide Functions is inactive
The loaded asset has no parameters from called functions.
Where did the paw button go?
The Show Toolbar Button setting is probably off. See Settings. The window still opens from Tools → Material Params Manager.
How do I revert everything?
| What changed | How to undo |
|---|---|
| Order, names, groups before Apply | Load |
| Order, names, groups after Apply | Ctrl+Z |
| Values | Ctrl+Z |
Вопросы и проблемы
Почему порядок в окне отличается от того, что в Material Editor?
Окно показывает порядок Material Instance. Панель параметров в самом Material Editor устроена иначе. Сравнивать нужно с Material Instance.
Я нажал Apply, а изменения пропали
Скорее всего, материал был открыт в Material Editor. Редактор работает с собственной копией материала, и его кнопка Apply перезаписывает ассет этой копией. Плагин предупреждает об этом уведомлением.
Закройте Material Editor без применения или закройте его перед использованием плагина.
Параметр из функции нельзя переместить
Строки с пометкой (f) только для просмотра. Загрузите в плагин саму функцию. См. Material Functions.
Почему в Material Instance меньше параметров, чем в окне?
Material Instance по умолчанию скрывает параметры, не подключённые к выходу материала. Включите Show Inactive в его редакторе, и список совпадёт с окном плагина.
Почему категория Global Vector Parameter Values стоит посреди списка?
Такие категории сортируются вместе с обычными группами по алфавиту, и Material Instance покажет их так же. См. Как считается порядок.
Строка мигнула красным
Новое имя или индекс не приняты. Проверьте, что имя не пустое, не равно None, не занято группой или параметром другого типа, а индекс — число.
Индексы одинаковые, это ошибка?
Нет. При равных индексах движок сортирует по имени. Выровнять их можно кнопкой Normalize Indexes.
Load показывает предупреждение
Выделен ассет, который плагин не поддерживает, например Material Instance. Выделите Material или Material Function.
Редактор предлагает пересобрать модуль MaterialParamsManager
В папке плагина бинарники другой версии движка. Нужна сборка под вашу версию, см. Установка.
Hide Functions неактивен
В загруженном ассете нет параметров из вызванных функций.
Куда делась кнопка с лапкой?
Вероятно, отключена настройка Show Toolbar Button. См. Настройки. Окно по-прежнему открывается через Tools → Material Params Manager.
Как вернуть всё назад?
| Что изменено | Как отменить |
|---|---|
| Порядок, имена, группы до Apply | Load |
| Порядок, имена, группы после Apply | Ctrl+Z |
| Значения | Ctrl+Z |
Plugin internals and building
For developers who want to build the plugin themselves or extend it.
Structure
MaterialParamsManager/
MaterialParamsManager.uplugin
Resources/
Icon128.png plugin icon
PawIcon.svg icon for the toolbar, tab and rows
Config/FilterPlugin.ini
Source/MaterialParamsManager/
MaterialParamsManager.Build.cs
Private/
MaterialParamsManagerModule.cpp tab, menu, button, style
MPMDocument.h/.cpp reading, edits, writing
SMPMPanel.h/.cpp window and rows
MPMSettings.h Editor Preferences
MPMCompat.h engine version differences
One module of the Editor type. Dependencies: Core, CoreUObject, Engine, InputCore, Slate, SlateCore, UnrealEd, ToolMenus, PropertyEditor, MaterialEditor, ContentBrowser, AssetRegistry, DeveloperSettings, Projects.
Key decisions
| Decision | Why |
|---|---|
A plain STreeView with custom rows | Dragging doesn't depend on UMG widget settings that changed between versions |
Finding parameters through HasAParameterName() and reflection on the Group and SortPriority fields | New types work with no code changes and without including their headers |
Values through IPropertyRowGenerator | The same widgets as Details, for all types |
Writing through PreEditChange and PostEditChangeProperty | The engine reacts as it does to an edit in Details |
FMPMDocument::SortAll repeats the logic of RegenerateArrays | It matches Material Instance, engine quirks included |
Data flow
FMPMDocument::Loadgathers parameter nodes from the asset and, recursively, from called functions. Parameters from functions are markedbLocked.- Order, name and group edits change only
FMPMItem. FMPMDocument::Applywrites the changes in one transaction, updates Parameter Group Data, recompiles the material and re-reads it.
Version differences
Everything is in MPMCompat.h and the MPM_UE_BEFORE_5_1 and MPM_UE_BEFORE_5_8 macros:
| Version | Difference |
|---|---|
| 5.0 | Material->Expressions, Function->FunctionExpressions, ParameterGroupData directly in UMaterial |
| 5.1+ | GetExpressions(), GetEditorOnlyData()->ParameterGroupData |
| 5.0 | A tree row has no access to ExpanderArrowWidget |
| before 5.8 | The index of a group with only function parameters is locked |
Building
RunUAT.bat BuildPlugin -Plugin=<path>\MaterialParamsManager.uplugin -Package=<short path> -TargetPlatforms=Win64 -Rocket
The -Package path must be short, for example C:\Build\58, or the build will hit the 260 character limit.
Compilers
All versions build in Visual Studio 2026. You need the MSVC 14.34 components and Windows SDK 10.0.26100.
UE 5.0 and 5.1 pick a compiler that is too new and fail on engine headers. BuildPlugin can't set the compiler, so after it fails, repeat the UnrealBuildTool command from the log with this parameter added:
-CompilerVersion=14.34.31933
Building from a network drive
When building an engine from a network folder, UnrealBuildTool may fail with Insufficient system resources, a limit on reading many files over SMB. Retrying the build helps. Run it through a mapped drive letter (pushd), not a UNC path.
Устройство плагина и сборка
Раздел для разработчиков, которые хотят собрать плагин сами или доработать его.
Структура
MaterialParamsManager/
MaterialParamsManager.uplugin
Resources/
Icon128.png иконка плагина
PawIcon.svg значок для панели, вкладки и строк
Config/FilterPlugin.ini
Source/MaterialParamsManager/
MaterialParamsManager.Build.cs
Private/
MaterialParamsManagerModule.cpp вкладка, меню, кнопка, стиль
MPMDocument.h/.cpp чтение, правки, запись
SMPMPanel.h/.cpp окно и строки
MPMSettings.h Editor Preferences
MPMCompat.h различия версий движка
Один модуль типа Editor. Зависимости: Core, CoreUObject, Engine, InputCore, Slate, SlateCore, UnrealEd, ToolMenus, PropertyEditor, MaterialEditor, ContentBrowser, AssetRegistry, DeveloperSettings, Projects.
Основные решения
| Решение | Зачем |
|---|---|
Обычный STreeView со своими строками | Перетаскивание не зависит от настроек виджетов UMG, которые менялись между версиями |
Поиск параметров через HasAParameterName() и рефлексию полей Group и SortPriority | Новые типы работают без изменения кода и без подключения их заголовков |
Значения через IPropertyRowGenerator | Те же виджеты, что и в Details, для всех типов |
Запись через PreEditChange и PostEditChangeProperty | Движок реагирует так же, как при правке в Details |
FMPMDocument::SortAll повторяет логику RegenerateArrays | Совпадение с Material Instance, включая особенности движка |
Поток данных
FMPMDocument::Loadсобирает ноды параметров из ассета и рекурсивно из вызванных функций. Параметры из функций помечаютсяbLocked.- Правки порядка, имён и групп меняют только
FMPMItem. FMPMDocument::Applyв одной транзакции записывает изменения, обновляет Parameter Group Data, пересобирает материал и перечитывает его.
Различия версий
Всё находится в MPMCompat.h и макросах MPM_UE_BEFORE_5_1 и MPM_UE_BEFORE_5_8:
| Версия | Отличие |
|---|---|
| 5.0 | Material->Expressions, Function->FunctionExpressions, ParameterGroupData прямо в UMaterial |
| 5.1+ | GetExpressions(), GetEditorOnlyData()->ParameterGroupData |
| 5.0 | У строки дерева нет доступа к ExpanderArrowWidget |
| до 5.8 | Индекс группы только из параметров функций заблокирован |
Сборка
RunUAT.bat BuildPlugin -Plugin=<путь>\MaterialParamsManager.uplugin -Package=<короткий путь> -TargetPlatforms=Win64 -Rocket
Путь -Package должен быть коротким, например C:\Build\58: иначе сборка упрётся в лимит 260 символов.
Компиляторы
Все версии собираются в Visual Studio 2026. Нужны компоненты MSVC 14.34 и Windows SDK 10.0.26100.
UE 5.0 и 5.1 сами выбирают слишком новый компилятор и падают на заголовках движка. BuildPlugin не умеет задать компилятор, поэтому после его неудачи нужно повторить команду UnrealBuildTool из лога, добавив параметр:
-CompilerVersion=14.34.31933
Сборка с сетевого диска
При сборке движка с сетевой папки UnrealBuildTool может падать с ошибкой Insufficient system resources, это ограничение чтения множества файлов по SMB. Помогает повтор сборки. Запускать нужно через подключённую букву диска (pushd), а не по UNC-пути.