//(Resources要求)文件需放在 xxxx/Resources/Image/logo2.png Texture texture = Resources.Load<Texture>("Image/logo2"); TextureMain.mainTexture = texture;