How do i “Set Scalar Parameter Value” to only affect one instance of a class blueprint object and not every single one that shares the same parameter name?
In my example i’m trying to set a selected part of a material to loose it’s emissiveness when i shoot it with a projectile.
However, since i’ve copied multiple instances of my object they all share the same parameter name. Meaning they all get affected together.
You are using the generic chair variable so that might cause it to hit all chairs.
I have been researching this lately and I might be able to help.
Since you are shooting, this should be pretty straightforward. Use a Single Line Trace, and then Break Hit Result. Take the Hit Actor and plug it into dynamic material instance.
I hope this works for you because I am about to work on the same kind of stuff.
Note: when i shoot the original (the one to the right, just as i did in the image above) they both glow and keep flickering BUT only the one i shoot changes color. But when i shoot the copied one, (the one to the left in the image) they both stop glowing and the one i shoot changes color. (i.e. the color changing works by instance, but not the emissiveness, and for some reason emissivenes outcome depends on what order i shoot them)
Still unsolved. Been mucking around with “line tracing”, but it doesn’t seem relevant for what i want to do (unless i’m understanding it completely wrong).