To be sure, you need few steps for make it working:
-
Create list of physic materials in your project settings (physic/scroll down)
-
create physic material assets for every single material from list - open and set what physic material from your project settings list this is
-
set physic material to material (with landscape also you can have layers, this is harder, but see*)
-
now make correct code to read physic material from steeps for example, I use switch
- if you have auto terrain with layers, go to landscape/paint/select layer → right mouse click → select physical material.
(this is from memory, if something not working I can update later.