unitycoder / UnityMobilePaint

Public repository for MobilePaint issues & requests
https://www.assetstore.unity3d.com/en/#!/content/19803?aid=1101lGti
MIT License
49 stars 16 forks source link

how to get clone texture to UI image at runtime? #39

Open pierrenayagam opened 5 years ago

pierrenayagam commented 5 years ago

i want to stamp the textures on to a UI image component to enable a thumbnail list.

unitycoder commented 5 years ago

could try calling GetCanvasAsTexture(), which returns Texture2D, then assign that into UI RawImage.

*note that GetCanvasAsTexture doesnt return all layers of the image, just the main painting layer, so would have to create own method to combine all of those (if they are missing)