Download

Can't set Landscape material in Editor Utility Blueprint. Clues?

Hello there,

Anny suggestions on how to set a material to a landscape in a editor utility blueprint?

In blueprint B1.png all actors get updated with the material, except the landscape.
In blueprint B2.png I tried to get the Landscape components, then set the material, landscape component is printed (Landscape_0.LandscapeComponent_0) but never get the material.

I can change landscape material using Python like:



actors = unreal.EditorLevelLibrary.get_all_level_actors()
      for each in actors:
            label = each.get_actor_label()
            if 'Landscape' in label:
                   mat = unreal.EditorAssetLibrary.load_asset('/Game/t1_Mat')
                   each.set_editor_property('landscapematerial', mat)


Perhaps, probably ‘set material’ expression do not call ‘landscapematerial’ key so that’s why blueprint dont work as expected?
Either way how to do it in the blueprint or any ideas on what to try?

Thanks!
​​​​​​​Rodrigo