Hello Guest

Author Topic: How do I add image load from the server into the atlases  (Read 5076 times)

Tongie

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 23
    • View Profile
How do I add image load from the server into the atlases
« on: January 02, 2014, 08:18:37 am »
Anyone can help?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How do I add image load from the server into the atlases
« Reply #1 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.

Tongie

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: How do I add image load from the server into the atlases
« Reply #2 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.

Tongie

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: How do I add image load from the server into the atlases
« Reply #3 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!