Thanks for your advice. I haven’t gone deep into the framework. I will come back and get more comprehension of your advice.
Now I have another question. I initialized the terrain’s material and turned on its wireframe mode. But I could not turn it off when the game was running. I tried to set the terrain material wireframe mode to false, and let the terrain set its material again when running the game. This approach is not useful. How can I switch between different wireframe modes when the game is running? Thank you very much in advance!