Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: RonaldJolly on July 10, 2017, 06:41:44 AM
-
Anyone here can help me with an example of how to make a sprite dynamically?
I really appreciate all your answers. Cheers!
-
Make a sprite dynamically? Do you mean AddComponent<UISprite>()? If you mean adding a sprite to an atlas, don't do it. Just use a UITexture at run-time. I mean, it's certainly doable and the code for the UIAtlasMaker is there in that file, but it's just not worth it.