GetComponent<Image>().sprite;. // convert Texture. Texture2D temp = sp.texture;. // conversion to bytes. byte[] photoByte = temp.EncodeToPNG(); ...
確定! 回上一頁