Update Material Parameters on Landscape Spline Segments

Hi

I am trying to update my Material Instances on Landscape Spline Segment Meshes.

Its a simple scalar Value and works on static meshes in blueprints.

When I try to access to update Landscape Spline Segment Meshes.I cannot… any ideas?

Cheers

I managed to access landscape splines like so.

Get all actors of class : Landscape
For each loop/Loop body : Get components by class : Landscape Splines component

For each loop/Loop body : Get children Components (make sure its componentS not component)

For each loop/Loop body : Cast to mesh component

You can now cast the children to something, I needed the mesh so I can get and change the material using dynamic material instances.