I’ve been having trouble with setting the scalar parameters to a random value in my blueprint. Everything compiles fine, and if I create a material instance and set the parameter manually it works fine, but if I try to do it through a blueprint nothing happens and it stays on the default value when I bring the blueprint into the world. This is my construction script
The problem is you are setting a collection parameter in construction script while using a normal parameter in the material, and you arent specifying which mesh should use the created material instance. Get the variable of your mesh, drag from the variable and then Create Dynamic Material Instance.Then drag the blue pin of the Create Dynamic MaterialInstance node and then search for Set Scalar Parameter. You should have a different node than the one you have. Enter the name of your parameter and plug your random value, and thats it. Here’s a screenshot:
Here the only difference is i’m setting a vector parameter.
Still getting the same result. I get the feeling the blueprint is having trouble accessing my parameter.
EDIT: Disregard this, I had a brain fart. Cheers