set scalar parameter value on materials not working on packaged projects

I have a set scalar parameter value on material on a cube set to go off after 5 seconds

de4d7d955614b462c689aaa85a5735dd6c429c41.jpeg

The following screenshot is the preview view in the editor that shows it working.

f28f243be985d225296dc3d8f19f915bcd3e91f7.jpeg

This is what I see in the packaged project

35e06318cd0ae8b5d49561cf9836f0bff35bf07e.jpeg

This is the material I am using.

3088aecbc42aabbaed48ca63f65bf91dc7c304c4.jpeg

But when I package the project nothing happens. This is a completely new project I did just to test this error on 4.12.5. You would get the same result if you did the same. Does anyone know why this is happening and is there something else I can use instead of the set scalar parameter value on material?

It might sound dumb but have you tried changing the name of your parameter to something else than the default “None”? There might be something in packaged builds that screws up if the param name is left as the default?

I didn’t but I’ll try that thanks.

If it doesn’t help maybe, just maybe, try to use “Set Scalar Parameter Value”, for this you need to get materials of a mesh(Or even create a dynamic material instance of the material you using, then change scalar value, and then set newly created dynamic material to your mesh, that’s how I do this anyway, after seeing your solution it seems rather complicated and unnecessary :smiley: but at least I think it’s worked last time when I tested with cooked game, can’t say for sure).

It looks something like this: http://imgur.com/a/FRcCy ofcourse if you have more then one material slot, you need to do foreach loop…