On the same map, we have different weather systems. Landscape in different weather systems requires different material representations, including rendering materials and physical materials. We tried to replace the rendered and physical materials with the weather dynamically at runtime, but they didn’t work. Is there a solution?
Here’s how we replace the material:
- Get the ULandScapeComponent component in the level at runtime
- Change ULandScapeComponent Component’s OverrideMaterial to another one
Here’s how we replace the phys material:
- Select the landscape’s material instance
- change the Phys Material to which we need
we have found that it’s invalid to change phys material even not in runtime