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"

Cast Hidden Shadow on dynamic loaded StaticMesh


I have build a room entirly with a blueprint out of staticMesh elements. If i press a button the Roof will be invisible. But the lighting inside the room should stay. So i want to set castHiddenShadows to true but the blueprint only let me read this value. Is there a way to set this value at runtime?

Product Version: Not Selected
more ▼

asked Sep 28 '14 at 11:15 PM in Blueprint Scripting

avatar image

101 14 20 24

avatar image dissonanceint Sep 28 '14 at 11:25 PM

I have a couple of ideas but I need more info first. Is the room blueprint spawned at runtime or is it in editor and built with construction script? Does the roof exist as a blueprint component or is it spawned at runtime? Is it spawned as a separate actor or added as a new component?

avatar image Rexaka Sep 29 '14 at 10:07 PM

The Room is Build at runtime, At the moment the Roof elements are staticMeshs and are added as new components to the room blueprint. I collect them inside of an array and set the visibility to true/false with a for each loop.

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

1 answer: sort voted first

When you add a static mesh component, it lets you set some settings in the details panel.

alt text

If you set that at spawn, then there is no need to change the setting in game. Does that work for you?

more ▼

answered Sep 29 '14 at 10:11 PM

avatar image

1k 42 28 65

avatar image Rexaka Sep 30 '14 at 12:04 PM

It was exactly wat i was looking for, 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