SetVectorParameterValueOnMaterials not working in packaged game

SetVectorParameterValueOnMaterials blueprint function does nothing in packaged game when it is in the ConstructionScript. It worked in 4.14.

To reproduce:

  • create a third person blueprint project
  • create a blueprint actor, add a cube component and put this in the construction script:

  • put a instance of the actor in the map
  • run PIE, the cube is red as expected
  • create game package (I tried Windows 32 bit)
  • launch packaged game, the cube is white

If the blueprint code above is moved from construction script to BeginPlay, it works correctly when packaged. I did not try other Set*ParameterValueOnMaterials but they likely have the same problem.

Hey matfer,

I’ve reproduced the issue and have entered a bug report which you can track using the link below:

Thanks for your report.

Have a great day