Question by
Mikaeel313 · Jan 28, 2019 at 11:11 AM ·
2dimageruntimeimporting
How to importing Image when game is running (Run Time) ?
i will let to users select profile picture from her mobile phone. please help me . i needed to this.
HELP ME. :(
Comment
Answer by xxmariofer · Jan 28, 2019 at 11:26 AM
i have not read from the galery, but i have do that same from webapis, i used the WWW class for getting the bytes from the image, and once you have done that you can create a texture and with that texture create a sprite in a really trivial way
https://docs.unity3d.com/ScriptReference/Sprite.Create.html
the only think i am not sure is if you can access galery using the www class.