Use "Custom Depth" from blueprint

Hols, I need to be able to use "Custom Depth Buffer " inside a blue print to enable or disable it. The reason is that in my game every time a character speaks a white silhouette appears on the 3D model thanks to the post processing. The visual system already works, but I need the system to only apply to one of the models.

The character that speaks always appears in a certain place. So if I could get the “Custom Depth” to be activated when the corresponding character collides with a box, that would be great too.

Can you think of anything? Thanks in advance.

Hey there
You have a function that literally does that.
Set Render Custom Depth
image

1 Like

Hello!

Indeed, it was what I was looking for. What I did was to place a collision sphere on my NPCs and, when they are positioned inside the collision cube, “On component begin Overlap” is activated and “Custom Depth” from blueprint is activated.

Thank you very much for your help.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.