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. 

Affect All Blueprints

Hi All,

I have a scene with several of the same bluprint actors and I have an event set up that does this. "Player presses "R" key, actor in blueprint changes material from A to B"

Pretty simple, it works in the scene and it works on one blueprint, but then if I drag another of the same blueprint into the scene, only the most recent blueprint will perform this event, all the previous ones seem to lose the ability to change the material. Is there a way to get all the blueprints to do the same thing when I press "R"? it seems like they should all be performing the same action but only the most recent one will.

Product Version: UE 4.17
more ▼

asked Oct 19 '17 at 10:41 AM in Blueprint Scripting

avatar image

172 33 46 52

avatar image Iotti Oct 19 '17 at 01:10 PM

Can you show how you are implementing the R key input?

avatar image Dark_Jubei Oct 20 '17 at 03:03 PM

Hey Lotti, here is the whole event graph in the blueprint itself.

alt text

This works the way I want it to, its very basic but it does work fine, just only for the most recent blueprint. I don't want to set up any collision boxes or anything, because I don't think this kind of thing needs it (though I could be wrong). I just need all the blueprints to respond at the same time, to these kind of commands.

blueprint.jpg (748.9 kB)
avatar image Iotti Oct 20 '17 at 04:40 PM

Did you tried to create an Input event on project config and try to called instead the R key, just to make sure?

avatar image mueezkh Nov 09 '18 at 04:07 PM

Any finalized answers to this? Having the same problem

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

1 answer: sort voted first

If i understand correctly:

You can try this: In your Levelblueprint or playerblueprint call at first getallactorsofclass. From this one grab the actor Output and do a for each Loop. From that you can call then for every blueprint a custom Event instead of the r key. Then every blueprint in the Level should perform the same Event. You can also try to use a blueprint Interface.

more ▼

answered Oct 21 '17 at 07:39 AM

avatar image

318 8 13 20

(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