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"

Enabling and Disabling Attached Static Mesh Collisions and Visibility using Flip Flop

Hey Folks, in advance any and all help appreciated.

I have set up a scene which has a function that turns on and off the visibility of static meshes. These static meshes are attached in a parent and child structure. The parent has 8 children.

I have worked out turning on and off the visibility of the static meshes in blueprints.

However when I add the ability to enable or disable the collision of the actor it only affects the collision of the parent actor and not the children.

I am aware that I can include the 8 items into blueprints and enable / disable their collisions manually, however future parent objects may have about 100 children - so to keep it neat is there any way to only use the parent actor and still turn on and off the collision with the visibility

.alt text

Above I have included an image of my blueprint script.

Any help would be appreciated and high fives given.

Product Version: Not Selected
Tags:
more ▼

asked Mar 03 '15 at 04:56 PM in Blueprint Scripting

avatar image

Newworld1
11 1 4 5

avatar image Alltvin Jan 27 '17 at 02:24 PM

Did you solve it? If so, please set my answer below to Solved so others with similar question can see it.

avatar image MonsOlympus Jan 28 '17 at 05:41 AM

Im not sure your answer is the correct one, though I would encourage the sharing of the correct solution and accepting correcting answers. This question is from 2015 which could be why the user hasnt responded.

avatar image Alltvin Jan 28 '17 at 08:53 AM

Ah I see, didn't look for the date. I guess that's why :)

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

1 answer: sort voted first

There is a Get All Child Actors which contains an Array of all the Childs. If you loop For Each Loop on that array and set collision each time.

Is that maybe what you are looking for?

more ▼

answered Jan 24 '17 at 09:00 AM

avatar image

Alltvin
416 9 7 27

(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