Duplicating Blueprints With Dynamic Material Instance Variables
Having an issue with my variables resetting to the default value when I duplicate them (with any hotkey or any method) within the level editor. The construction script I built uses static meshes, scalar, and vector3 variables but it is only ones that relate to the dynamic material instances that reset when I duplicate. The static meshes stay and one of the dynamic material instances keep their variable values....I have no clue what is going on and from what I have found so far the only thing I can reason is: BUG. But it is probably me. Any thoughts? I'm still fairly new at blueprint.
asked Jun 25 '17 at 06:40 AM in Blueprint Scripting
Did you try the SetVectorParameterValueOnMaterials function that needs an MID as input and a color instead of SetVectorParameterValueOnMaterials that needs a Static Mesh and a Vector?
answered Jun 25 '17 at 07:01 AM
Cant Reproduce (4.16) works as expected.
Are you doing anything else with the Variables? Construction script will Run again if you duplicate so if you cahnge things in the script it will happen again on duplication.
Make a simple script if Possible that definitly does not work that I can try out. (not gonna use 4.14 though ;P)
answered Jul 08 '17 at 02:29 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here