How to create a sprite from Canvas content

Hi All,

I have a Canvas with few Images and texts in it and i want to create a sprite out of the whole Canvas content (Images and texts together).

Is there a simple way to do it?

Thanks in advance!

Hey,

I think you can use the Texture2D.ReadPixels to create a texture with the content of the screen and then create use it to create a sprite with Sprite.Create.

@Bruder you can use unity’s building sprite editor tool to separate these images and texts. Once you imported the original image, convert it into sprite then slice this sprite to separate these images and texts.