Landscape physical material always nullptr

If i do the same code, but on blueprint, it works, idk why, i want to make it work on c++