x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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: Decals
Material
Setup
OnHitCode Thanks in advance for the help!

Product Version: UE 4.19
Tags:
decals1.png (848.9 kB)
decals2.png (500.6 kB)
decals3.png (16.2 kB)
decals4.png (35.4 kB)
more ▼

asked Apr 25 '18 at 06:53 AM in C++ Programming

avatar image

xSheim
125 5 11 18

avatar image Arty-McLabin Apr 25 '18 at 12:06 PM

can you submit the code in a readable way though?

avatar image xSheim Apr 25 '18 at 04:28 PM

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.

avatar image MrMcKvarz Apr 25 '18 at 12:25 PM

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.

avatar image xSheim Apr 25 '18 at 04:29 PM

I'll take a look, thanks

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered May 01 '18 at 12:02 PM

avatar image

xSheim
125 5 11 18

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question