# How to make OWN MATERIAL NODE for Material Editor

**URL:** <https://forums.unrealengine.com/t/how-to-make-own-material-node-for-material-editor/1548083>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, editor, Plugins, CPP\
**Created:** [December 23, 2023, 1:43pm UTC](https://forums.unrealengine.com/t/how-to-make-own-material-node-for-material-editor/1548083 "2023-12-23T13:43:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GGUMINGUUU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GGUMINGUUU](https://forums.unrealengine.com/u/GGUMINGUUU)\
**Post date:** [December 23, 2023, 1:43pm UTC](https://forums.unrealengine.com/t/how-to-make-own-material-node-for-material-editor/1548083/1 "2023-12-23T13:43:09Z")

</div>

Hello there I’m try to reach the goal of making or editing Unreal Engine from C++ side.  
One of the things I always wanted to know is how to make a MATERIAL NODE for which could be spawned at the material editor. For instance something like below which is NOT a CUSTOM NODE :  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/4/4d42586364253cea32484dfb514922ff117c6ec7.png)

Now I have came across some articles where this topic was touched; however never got explained clearly one how does it work

1. [Creating own material nodes?](https://forums.unrealengine.com/t/creating-own-material-nodes/366080)

2.[Custom material node to extract UTexture2D data in C++ - #3 by oktomus\_tuatara](https://forums.unrealengine.com/t/custom-material-node-to-extract-utexture2d-data-in-c/552609/3)

While the article no.2 does give the insight; however; my first AIM is to call a .usf as a native material node for instance the SkyAtmosphereViewLuminance node which does gives off the color from SkyAtmosphere.usf  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/2/61299c0dc891557d75fc8982a3497f8951b5b5f1.png)

So here I created a very basic .usf named " test\_f.usf "

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/b/41babb2db4ab10b948af135c3e76dd04341e7e02.png)

AS I noticed that all material nodes have a “MaterialExpression” named file I also tried to make one:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/6/f76da958a9210589f846ec5aa9c87ee1660896c8.png)

However I’m getting errors . .

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/3/533322a8adadef7bd80bd61db5d4904c63a0150f.png)

Now, all these are in a Plugin module which is for shader only and has the below build.cs

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/3/eb34d0af448bafd291988125a811480d2fda0f44.png)

Also, the load-phase is “PostConfigInit” as it’s what any Shader module needs to have.

You may ask why I want to do such thing via a Plugin. .  
I just want it to be modular and avoid editing engine code as much as possible; also this " GENERIC " plugin is a free for all for Unreal.

Now could anyone give me some info on how I can call/link my .usf to MaterialExpression and also make it possible to appear as a spawnable material node ? ?

---

<div class="post-metadata">

**Author:** ![GGUMINGUUU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GGUMINGUUU](https://forums.unrealengine.com/u/GGUMINGUUU)\
**Post date:** [January 23, 2024, 3:45pm UTC](https://forums.unrealengine.com/t/how-to-make-own-material-node-for-material-editor/1548083/2 "2024-01-23T15:45:21Z")

</div>

@oktomus_tuatara I have found the way and was able to make bunch of nodes 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/b/e5b93d68276299d0dd5b51aad5edff6d3d3c5a07.png)  
I’ll make a tuto on this soon. The best part is I no longer have to get headache dealing with node noodles. . .

---

<div class="post-metadata">

**Author:** ![rogyca](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rogyca](https://forums.unrealengine.com/u/rogyca)\
**Post date:** [March 15, 2024, 8:05pm UTC](https://forums.unrealengine.com/t/how-to-make-own-material-node-for-material-editor/1548083/3 "2024-03-15T20:05:45Z")

</div>

Hi! I am stuck with the same problem. Could you share your solution? Thx in advance 🙂

---

<div class="post-metadata">

**Author:** ![GGUMINGUUU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GGUMINGUUU](https://forums.unrealengine.com/u/GGUMINGUUU)\
**Post date:** [March 19, 2024, 1:55pm UTC](https://forums.unrealengine.com/t/how-to-make-own-material-node-for-material-editor/1548083/4 "2024-03-19T13:55:02Z")

</div>

Hi there we have sent you the support channel link. Check your email

Also for anyone interested creation of these advanced type of nodes directly please contact us via link below

> **[Join the - ILLU ✦ STUDIO - Discord Server!](https://discord.com/invite/KyrhnSTJwU)**
>
> Check out the - ILLU ✦ STUDIO - community on Discord - hang out with 34 other members and enjoy free voice and text chat.

---

<div class="post-metadata">

**Author:** ![Wrath\_PI](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wrath_pi/32/897906_2.png) [@Wrath\_PI](https://forums.unrealengine.com/u/Wrath_PI)\
**Post date:** [May 29, 2024, 2:55pm UTC](https://forums.unrealengine.com/t/how-to-make-own-material-node-for-material-editor/1548083/5 "2024-05-29T14:55:32Z")

</div>

Hi, I am looking to create a custom node based on SkyAtmosphereLightDirection or AtmosphereSunLightVector. Except that instead of from the light, I would like to retrieve the Forward Vector from a selected object in the scene. I assume that the Forward Vector is what the AtmosphereSunLightVector provides. Do you think it’s possible to rework an existing node or create a new one that will behave identically to the original and allow you to point to the object whose Forward Vector it will feed? Assuming that the node will occur several times in the material, probably, as in SkyAtmosphereLightDirection, an Index input will be needed. (Actor Index/Object Index)

---

<div class="post-metadata">

**Author:** ![petya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@petya](https://forums.unrealengine.com/u/petya)\
**Post date:** [February 2, 2025, 2:06pm UTC](https://forums.unrealengine.com/t/how-to-make-own-material-node-for-material-editor/1548083/6 "2025-02-02T14:06:34Z")

</div>

this thread is pretty ancient, but  
I made a template plugin with a custom node, so maybe it’ll help someone in the future

> **[Custom Material Node Example | Community tutorial](https://dev.epicgames.com/community/learning/tutorials/9dEE/unreal-engine-custom-material-node-example)**
>
> Plugin template for adding custom material expression node to the engine with a MaterialExpression
