I am trying to sample a landscape texture to be able to drive a particular sound. The only way I can seem to currently do this is to create a landscape layer and assign a layerinfo with physicMaterial on it and lineTrace and check the physicMaterial from the hit result.
If I then plug in a texture into the layer blend node in the material, the only physics material that gets returned from the hitResult is the defaultPhysics Material. But if I then paint the layers through the landscape tool then the correct physics material gets returns according to what layer is painted.
Is is possible to have the landscape return a value from a texture that is applied to it in the material?
Also having problems with Landscapes not returning the correct physics material. I set the landscape material to a certain physics material but it’s not returning it from a line trace.
Hello dokipen. I also had the same thing happen to me but I’ve noticed that it only happens in the editor, so if you make a build of your project it should work fine.