How to make Character model hidden?
So how can I make the character's model hidden when a button is pressed, but still cast a shadow?
Or even better, how can I just make the head part of the character model hidden when a button is presses, but still cast a shadow.
In your Player Controller (or wherever you are receiving input for your character), you can use the Set Hidden in Game node to toggle whether a Component is hidden during play. You could set up something like this:
This will Cast to the character Blueprint, get the component you want (in your case, your Head mesh), and set it Hidden. I'm using a Bool variable (default value as false) and setting its negative every time, so while H is pressed the mesh is hidden, and when H is released it becomes visible again.
You can decide whether an Actor or Component casts a shadow while Hidden. In this case, I found the mesh component of my character's Blueprint and scrolled down to Lighting in the Details panel. If you expand that section, you'll find Cast Hidden Shadow. Enable that, and a shadow will be cast whether it is hidden in the game or not.
Hope that helps!
answered Jul 21 '14 at 10:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here