How to use Dynamic Material Instance on Landscape?

I want to implement a game like Crusader Kings, I need to use Dynamic Material Instance to show dynamic border and territorial limits by transfer a dynamic texture as parameter.
To us Dynamic Material Instance on Landscape,I follow this article:

But it doesn’t work on landscape!
This is my test implementation:

  1. A Simple Test Material With a Parameter(Default Red)

  1. Set MID to Landscape Comps and Set Color to Green.

Finally,
It is correct on landscape material’s detail panel.

But it is still RED…

343258-ans.png

Use a material parameter collection.

1 Like

Yup, this worked. The landscape actor even has a field “Use Dynamic Material Instance”, but clicking that field has no apparent effect.

For this question that somehow was never answered:

For using a dynamic material WITHOUT MPC/Whatever, if for example you need to use dynamic textures, like in my case, dynamic render texture heightmaps.

  1. UE 5.5
  2. Set ‘UseDynamicMaterialInstance’ in the UI to ‘True’

  1. In order to use the dynamic MID do NOT use ‘CreateMaterialInstance’ dynamic or the ilk, but use the special material function called ‘GetMaterialInstanceDynamic’ that is specific for landscape components!

I required it for dynamic heightmaps added to terrain components and terrain fade out.

1 Like