# Landscape material instance color parameter not working immediately

**URL:** <https://forums.unrealengine.com/t/landscape-material-instance-color-parameter-not-working-immediately/470401>\
**Category:** Rendering\
**Tags:** color-picker, unreal-engine, Landscape, question\
**Created:** [August 27, 2020, 11:20am UTC](https://forums.unrealengine.com/t/landscape-material-instance-color-parameter-not-working-immediately/470401 "2020-08-27T11:20:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whysay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@whysay](https://forums.unrealengine.com/u/whysay)\
**Post date:** [August 27, 2020, 11:20am UTC](https://forums.unrealengine.com/t/landscape-material-instance-color-parameter-not-working-immediately/470401/1 "2020-08-27T11:20:15Z")

</div>

i’m using 4.25.3.

I opened color dialog that click landscape material instance color parameter.

Change Color with mouse, but not change landscape color immediately.

Color change when close dialog.

It works well, in 4.25.2.

---

<div class="post-metadata">

**Author:** ![whysay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@whysay](https://forums.unrealengine.com/u/whysay)\
**Post date:** [August 28, 2020, 9:04am UTC](https://forums.unrealengine.com/t/landscape-material-instance-color-parameter-not-working-immediately/470401/2 "2020-08-28T09:04:07Z")

</div>

MaterialInstance.cpp

const bool bForceStaticPermutationUpdate = PropertyChangedEvent.ChangeType == EPropertyChangeType::Redirected;

to

const bool bForceStaticPermutationUpdate = PropertyChangedEvent.ChangeType == EPropertyChangeType::Redirected || PropertyChangedEvent.ChangeType == EPropertyChangeType::Interactive;

then works fine.

---

<div class="post-metadata">

**Author:** ![SekasShmekas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SekasShmekas](https://forums.unrealengine.com/u/SekasShmekas)\
**Post date:** [September 30, 2020, 3:46pm UTC](https://forums.unrealengine.com/t/landscape-material-instance-color-parameter-not-working-immediately/470401/3 "2020-09-30T15:46:41Z")

</div>

In some point in time they added meta variables to Editor UI elements, in order to have more control over performance.  
I dug into it and found out there is a specific property which could solve this problem only for material instance color picker and no touching master materias (which is what we want, since master material node updates are really heavy because they involve shader recompilation). So what I ended up with is commenting out meta data in UDEditorVectorParameterValue:

`
	UPROPERTY(EditAnywhere, Category=DEditorVectorParameterValue/*, meta=(OnlyUpdateOnInteractionEnd)*/)
	FLinearColor ParameterValue;
`

And that worked fine for me - color change in now happening in realtime when I click and move the mouse on the color circle.
