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"

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;

alt text

secondary actor ; alt text

alt text

and my actor ; alt text

alt text

A is a reference to my secondary actor in my actor bp

Product Version: UE 4.13
Tags:
capture0.png (54.3 kB)
capture11.png (64.2 kB)
capture1.png (78.3 kB)
capture22.png (61.3 kB)
capture2.png (144.9 kB)
more ▼

asked Nov 21 '16 at 09:55 PM in Blueprint Scripting

avatar image

haamzza
7 1 1 3

avatar image haamzza Nov 27 '16 at 11:16 AM

someone pls ??

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

1 answer: sort voted first

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.

more ▼

answered Nov 27 '16 at 12:31 PM

avatar image

Schadek
203 6 4 12

avatar image haamzza Nov 27 '16 at 08:00 PM

Thank you man it works perfectly with event dispatcher

(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