# Why does the dynamic material instance Vector Parameter change twice when entering the volume?

**URL:** <https://forums.unrealengine.com/t/why-does-the-dynamic-material-instance-vector-parameter-change-twice-when-entering-the-volume/360572>\
**Category:** Asset Creation\
**Tags:** unreal-engine, bug-report, question, overlap-event\
**Created:** [June 13, 2016, 1:29am UTC](https://forums.unrealengine.com/t/why-does-the-dynamic-material-instance-vector-parameter-change-twice-when-entering-the-volume/360572 "2016-06-13T01:29:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rysmith25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rysmith25](https://forums.unrealengine.com/u/rysmith25)\
**Post date:** [June 13, 2016, 1:29am UTC](https://forums.unrealengine.com/t/why-does-the-dynamic-material-instance-vector-parameter-change-twice-when-entering-the-volume/360572/1 "2016-06-13T01:29:02Z")

</div>

I followed Zak’s dynamic material instance w/ chair tutorial, which was excellent as are all of his tutorials. However, when my player crossed the volume, the material didn’t just change once, but twice. It’s not a huge deal, but if someone were to walk up slowly to the chair, it would look like a broken effect. Any ideas why the color changed twice when I made a linear color and set that to the Vector Parameter of the DMI? Thank you.

 ![94393-dynamic+material+instance.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/9/6599461181b07a535684ea7f47a3b82cded3b090.png)

---

<div class="post-metadata">

**Author:** ![Noah\_Z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Noah\_Z](https://forums.unrealengine.com/u/Noah_Z)\
**Post date:** [June 13, 2016, 2:11am UTC](https://forums.unrealengine.com/t/why-does-the-dynamic-material-instance-vector-parameter-change-twice-when-entering-the-volume/360572/2 "2016-06-13T02:11:30Z")

</div>

Here is the problem, the event is fired every time a component overlap with the collision component.

So…after the Actor cast, you should add a component cast to make it fired only when the capsule overlap with your collision component.
