Decal spawned via C++ has always the same material

I’ve got an issue while trying to spawn decals via C++. Although I have set the material of it, it is spawning one of the ‘basic’ Unreal materials:



238736-decals3.png


Thanks in advance for the help!

can you submit the code in a readable way though?

Unreal shooter game have pretty good decal spawning logic, you can look there for more info. You should also check if your decal has apropriate rotation.

I’m sorry, I didn’t double check it. Unfortunately I was not able to add the spacing as I would like it to look, so I posted code as an image, sorry for that.

I’ll take a look, thanks

Finally solved the problem. I had to change my material’s domain property to be a Deferred Decal rather than just a surface