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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

UE4 unaware of change in bRenderCustomDepth

When I set bRenderCustomDepth to true on the mesh of my ACharacter actor, the desired highlight effect on the mesh doesn't work until I change the Cloth Blend Weight value on the mesh to any value in the details section. It seems as if UE4 is unaware of the change made to bRenderCustomDepth during gameplay and only becomes aware of it the moment Cloth Blend Weight is changed manually in the details section.

Product Version: Not Selected
more ▼

asked Mar 14 '15 at 12:45 PM in Bug Reports

avatar image

205 11 9 23

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

1 answer: sort voted first

Solved it using SetRenderCustomDepth() instead of setting bRenderCustomDepth directly.

more ▼

answered Mar 14 '15 at 01:10 PM

avatar image

205 11 9 23

avatar image VSZ Jun 06 '15 at 09:13 PM

Thank you for posting the solution, this one had me!

avatar image lukedan Aug 06 '18 at 07:49 AM

Well this is just bad design right here.

avatar image DrHobo Feb 26 '19 at 11:41 PM

Bad design? Not really. Like many graphic functions in UE4 SetRenderCustomDepth() does not execute something immediately but rather sets the stage for a complex rendering pipeline by either telling the scene that this will have a given effect (true) or making the scene dirty so it can plan its removal (false). Therefore, you don't want to waste time checking if a value has changed for a single effect change (as there are many values to check along the way). And yes, it will set bRenderCustomDepth but its effect will happen later on. The reason bRenderCustomDepth is public is only to be used in the constructor (or a Blueprint check mark on the properties sheet) by which the complex rendering pipeline will kick in eventually for the first time and take that flag into account.

So it's always confusing as we (myself included) take for granted that the first match Intellisence will give us is the good one and assume that this should "just work".

There are many bXXX values that have a SetXXX() equivalent in UE4. Just keep a sharp eye as to when to use them. :)

(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