How to change a material color based on damage BP?
As the title says, How can I communicate to a players material and change his color based on damage. I want my characters color to turn brighter red based on how much health he has left. How do you communicate to a pawns material from the pawns blueprint.
Thanks in advance.
asked Jul 12 '14 at 07:52 AM in Blueprint Scripting
The standard approach here is to use the create dynamic material instance node (MID) to make an MID for the pawn. Ideally you should also create an MiD variable and set it to that MID afterwards to make it convenient to edit in the BP.
To change properties you would use the set scalar parameter or set vector parameter nodes. You simply need to have parameters of matching names in the material and you can control pretty much anything.
answered Jul 12 '14 at 03:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here