The actor B takes each time the material of the actor A
I would like that the main actor takes the color of the secondary actor after that the latter has change color so I have a simple material;
secondary actor ;
and my actor ;
A is a reference to my secondary actor in my actor bp
asked Nov 21 '16 at 09:55 PM in Blueprint Scripting
Use an Event Dispatcher. Set up a new one in your secondary actor called OnColorChanged and give it an input of Linear Color. During BeginPlay in your primary actor you bind a custom event ChangeColor to the event dispatcher of your secondary actor. If you now call the dispatcher after you changed the color of your secondary actor in your input event the primary actor will receive a call to ChangeColor with the new color.
I don't know what you want to achieve but this sounds like a problem that could be solved more easily with a Parameter Collection. This way your colors are always synchronized and you won't need to worry about events and so on.
answered Nov 27 '16 at 12:31 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here