I have a set scalar parameter value on material on a cube set to go off after 5 seconds
The following screenshot is the preview view in the editor that shows it working.
This is what I see in the packaged project
This is the material I am using.
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?
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 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…