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"

What's the difference between HiddenInGame, Visibility And RenderInMainPass?

Hello everyone,

I want my mesh to not drawn in the scene. In the other words, no draw call. Which one should I use? And what's the difference between them?

Product Version: UE 4.20
Tags:
more ▼

asked Dec 25 '18 at 10:38 PM in Using UE4

avatar image

Core21.
68 2 3 7

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

1 answer: sort voted first

Use SetVisibility or ToggleVisibility.

Hidden in game - means object visible in editor, but not in game.

more ▼

answered Dec 26 '18 at 06:37 AM

avatar image

redbox
4.2k 80 17 103

avatar image Core21. Dec 26 '18 at 01:25 PM

Thank you for your answer.

So basically, changing visibility will be enough for no draw call; and HiddenInGame also does the same thing in terms of draw calls?

avatar image redbox Dec 26 '18 at 01:41 PM

Yes. But usually HiddenInGame used in case of some actor components, and actors that must be visible in editor, but not in game. Like BlockingVolumes, Triggers or so.

If you need to toggle visibility in runtime, use SetVisibility or ToggleVisibility functions.

avatar image Core21. Dec 26 '18 at 02:04 PM

Thank you.

(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