Error when creating new material

Hi ! I’ve been trying to create a new mat from blending two previously selected mats with a Utility Blueprint. Right now I’m just trying to create a default mat using mostly this UE4 - Programmatically create a new material and inner nodes - Isara Tech. but I keep getting an error when using NewObject(). I’ve tried looking online for a while but I can’t find anything. It’s pretty much my first time using Unreal and I haven’t touched C++ in a while. Anybody have any idea why this is happening and how to solve it?

Any help is greatly appreciated :slight_smile:

Hey @knackiejpg, welcome to the forum community!
It seems you’ve been trying to test without fully completing the tutorial code, which I can understand if it’s your first time within the environment. I’d also recommend creating the material and its constructor, as well as including the next steps of code to ensure Unreal handles the background processes properly. I’d finish that first full step of “Create a new asset”, then test at the very end of the code.
I hope this can help, and happy coding!
-Zen

1 Like