# How to set scalar parameter value of a material interface?

**URL:** <https://forums.unrealengine.com/t/how-to-set-scalar-parameter-value-of-a-material-interface/369662>\
**Category:** Rendering\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [September 7, 2016, 9:43am UTC](https://forums.unrealengine.com/t/how-to-set-scalar-parameter-value-of-a-material-interface/369662 "2016-09-07T09:43:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![EminorReal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EminorReal](https://forums.unrealengine.com/u/EminorReal)\
**Post date:** [September 7, 2016, 9:43am UTC](https://forums.unrealengine.com/t/how-to-set-scalar-parameter-value-of-a-material-interface/369662/1 "2016-09-07T09:43:30Z")

</div>

As per title, the the target slot of a “set scalar parameter value” node is not compatible with a material interface variable. Is there any way to get around this?

---

<div class="post-metadata">

**Author:** ![indygoof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@indygoof](https://forums.unrealengine.com/u/indygoof)\
**Post date:** [September 7, 2016, 9:56am UTC](https://forums.unrealengine.com/t/how-to-set-scalar-parameter-value-of-a-material-interface/369662/2 "2016-09-07T09:56:04Z")

</div>

look here: [https://answers.unrealengine.com/questions/63545/how-to-change-a-material-instance-parameter-on-a-b.html](https://answers.unrealengine.com/questions/63545/how-to-change-a-material-instance-parameter-on-a-b.html)

You need to create a dynamic material instance in your constructionscript (or BeginPlay or whatever) and save it to a variable. Using this variable you can then use the Set Parameter nodes.

---

<div class="post-metadata">

**Author:** ![EminorReal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EminorReal](https://forums.unrealengine.com/u/EminorReal)\
**Post date:** [September 7, 2016, 12:22pm UTC](https://forums.unrealengine.com/t/how-to-set-scalar-parameter-value-of-a-material-interface/369662/3 "2016-09-07T12:22:01Z")

</div>

That variable has to be a material interface variable, otherwise it won’t accept the material interface. A material interface variable is not accepted as target for the Set Parameter node as per title description. This is because it is not applied to a blueprint object but to a widget.

---

<div class="post-metadata">

**Author:** ![AdrianTabacaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdrianTabacaru](https://forums.unrealengine.com/u/AdrianTabacaru)\
**Post date:** [April 7, 2021, 11:58am UTC](https://forums.unrealengine.com/t/how-to-set-scalar-parameter-value-of-a-material-interface/369662/4 "2021-04-07T11:58:34Z")

</div>

Hey guys, I found the solution in case someone stubles upon this. It is way cleaner than anything else, by setting scalar parameter value on material directly on the persistent level actor.  
The only weird thing is the Parameter Value which does not mirror the exact settings in the Material Instance Editor.

 ![335058-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/2/8d2e71e01763b35cbadcd4f8f39ef756213de3f5.png)

---

<div class="post-metadata">

**Author:** ![MisterPixel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/misterpixel/32/629747_2.png) [@MisterPixel](https://forums.unrealengine.com/u/MisterPixel)\
**Post date:** [May 29, 2023, 9:57am UTC](https://forums.unrealengine.com/t/how-to-set-scalar-parameter-value-of-a-material-interface/369662/5 "2023-05-29T09:57:40Z")

</div>

If anyone stumbles across this, go check [this thread](https://forums.unrealengine.com/t/issue-with-material-instances-both-constant-and-dynamic/1175892) for an added layer of weirdness!

As @AdrianTabacaru said in his previous post, you can do this without any Dynamic Material Instance, which is VERY strange, since the [documentation clearly states it cannot be done](https://docs.unrealengine.com/5.1/en-US/instanced-materials-in-unreal-engine/#:~:text=A%20Material%20Instance%20Constant%20is%20an%20instanced%20Material%20that%20calculates%20only%20once%2C%20prior%20to%20runtime.%20This%20means%20that%20it%20cannot%20change%20during%20gameplay)…
