How do you generate Mips at runtime?

Hi , I’m trying to use your codes to solve my same problem. But the result is strange and the model doesn’t change look or change mips when I scale it. I wonder where can I find the editor’s code to help me find out how mipmaps calculated and used?