Change Landscape Material/Textures at Runtime?
I know UE's landscapes are perfectly static and there is generally no way to create or modify them at runtime without the editor.
I got used to the fact that I can't alter any height- or material-weight data at runtime (with a heavy heart...), but I still haven't given up on trying to exchange the entire landscape-material instead. The point is to be able to apply a snowy material when it's snowing, a "wet" material when it's raining etc.
I tried a couple of things, but without success. Unfortunately, dynamic material instances don't seem to work with landscapes.
Then I thought I had found a workaround by iterating through a landscape's components, setting their override-material to whatever I want them to use, and then calling their member-function UpdateMaterialInstances(). But as it turns out, that function is editor-only as well :(
Does anyone have a workaround for this?
asked Jul 28 '16 at 07:46 PM in Rendering
AFAIK, you can't change those at runtime. Why don't you make snow and wetness as a part of your landscape material though?
answered Aug 08 '16 at 01:51 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here