Hi, for the landscape I haven’t found a way (either there is a bug in my project or the bug is due to version 4.24), but from the landscape you can drag and type “material”, so you can directly set the parameters from the landscape. Second way, would be to get the material from the landscape and then use get dynamic material instance.
For the instanced foliage actor, it contains **all **the procedural spawned foliage therefore you can’t set materials for that. You would first need to use “get components by class” -> “instanced static mesh component” and do a for loop from there. Basically each foliage type you have will be one element in the components array.
[HR][/HR]And depending on what you’re trying do to, using material parameter collections might be easier, since those can be accessed from all materials and you don’t need to manually create material instances from blueprints.
By the way, without the key words “at runtime” I misunderstood your question at first too