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"

Dynamic Material not updating its parameter for dissolving

Hi all, im having difficulties trying to make the following:

I have an enemy with a material element that needs to change when its health reaches 0, change a material for other material.

The new material assigned needs to update a parameter to dissolve the mesh

I have created the Dissolve material and it works well, but when i try to implement it in the BP, it changes the material succesfully but does not update the parameter that i want to change

  1. Im using a Create instance material Node

  2. A timeline for the value that i want to update

  3. a Set Scalar parameter value connected to the update node of the Timeline

I have literally put this inside the Tick node just to test but i can´t get it to work, it just changes the material and that´s it

Please i will appreciate the help

Product Version: UE 4.16
more ▼

asked Oct 29 '17 at 09:31 PM in Blueprint Scripting

avatar image

1 2 2

avatar image Charz87 Oct 29 '17 at 11:18 PM

Sorry i forgot the ScreenShot alt text

untitled-1.jpg (251.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

It would be much easier to pinpoint the issue if you posted a screenshot of the blueprint.

more ▼

answered Oct 29 '17 at 10:58 PM

avatar image

15.2k 77 25 62

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

to start with, you definitely should not place spawn Actor and create dynamic material instance functions inside the tick event. Potentially, you can, but you must be sure that it will not be executed every tick. You can place do once node, or gate, or better yet, in your begin play event create your material instance and your spawn actor in event where you set health values.

Also, you can place print string node to display values from your time line.

more ▼

answered Oct 30 '17 at 12:11 AM

avatar image

844 9 17 30

avatar image Charz87 Oct 30 '17 at 02:13 PM

Thanks for the feedback, i´ll try it as you suggest and see how it goes

(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