Is there a way to give material a unique flag/identifier, so that when I do tracing, I can get that flag/identifier ?
Here is the scenario - player shoots at a surface and based on the surface flag a particular effect is created. For example, in Doom 3 I’d trace, get a hit, check if it’s a solid, check of a surface flag and if surface’s flag is “stone”, I’d spawn certain effect, if it’s “glass”, I’d spawn another effect.
How would this work in UE4 ?
Thanks.