Hi guys. To add custom hotkeys for frequently used nodes like AppendVector, Clamp, StaticSwitchParameter, and others, follow these steps:
1. Go to the “Config” folder in the directory where Unreal Engine is installed.
Example: UE_5.4\Engine\Config
2. In the “Config” folder, open the BaseEditorPerProjectUserSettings.ini file in a text editor.
3. Search for the section [MaterialEditorSpawnNodes] around line 820.
*You can quickly find this by using the search function (usually Ctrl+F). If your text editor doesn’t have a function to number lines, I recommend you download Notepad++
4. Look at the available examples and insert the names of the nodes you need.
*Usually, to find the exact names of the nodes, type them in the Material Editor’s search bar. In the line, you just need to replace the node name and the hotkey.
Reboot Unreal Engine. After rebooting, you will be able to change the hotkey inside the Unreal Engine settings. You will no longer need to open a text document.
Challenges:
The names of some complex nodes in the Material Editor search (where I told you to look for names) will not match the required names for the BaseEditorPerProjectUserSettings.ini
To find the correct names for BaseEditorPerProjectUserSettings.ini, I recommend asking ChatGPT
The AppendVector is going to tickle me to do this. As I lost the will to life the times I accidently place appendmany being the default node when you type in Append. (Probably not the only one)
Unfortunately, it is indeed impossible to add a shortcut for MaterialExpression. If you add it to MaterialExpressionMaterialFunctionCall, it will only result in an empty material function.
But actually, I have written a plugin that can solve this problem, although it might make things a bit more complicated. Let me explain from the beginning.
1. The way to add shortcut keys for expression node.
As Dimi said, you can go to UE_5.x\Engine\Config\BaseEditorPerProjectUserSettings.ini and find [MaterialEditorSpawnNodes] to add shortcut keys.
Actually, there is also a way to add shortcut keys at the non-engine level, which is in the project config. You can go to Projectpath/Config/DefaultEditorPerProjectUserSettings.ini to incrementally add shortcut key commands. If this file does not exist, you can create a new one.
Now there’s a problem. The shortcut key must be added to the MaterialExpression class. MaterialExpressionMaterialFunctionCall can only create empty material functions, so it can’t be solved.