2D Toolkit Forum

2D Toolkit => Support => Topic started by: Tongie on January 02, 2014, 08:18:37 am

Title: How do I add image load from the server into the atlases
Post by: Tongie on January 02, 2014, 08:18:37 am
Anyone can help?
Title: Re: How do I add image load from the server into the atlases
Post by: unikronsoftware on January 02, 2014, 05:44:54 pm
You can't modify/create atlases at runtime, but you can certainly load new pre-packed atlases. Check the runtime sprite collections sample for how to load texture packer packed atlases and custom atlases at runtime.
Title: Re: How do I add image load from the server into the atlases
Post by: Tongie on January 03, 2014, 04:12:51 am
I am loading image from youtube and displaying using the tk2dsprite. What ways can i do this? I tried tk2dspritefromtexture but the image didnt display on the sprite.
Title: Re: How do I add image load from the server into the atlases
Post by: Tongie on January 03, 2014, 04:32:33 am
I think i got it. Use renderer.material.mainTexture not the texture from tk2dSpriteFromTexture. Thanks alot man!