Hello Guest

Author Topic: Is it supported now?  (Read 3765 times)

J. Park

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Is it supported now?
« on: November 13, 2013, 07:22:34 am »
Long time ago, you said about other sprite collection mode. Is it supported now?

http://2dtoolkit.com/forum/index.php/topic,404.msg1837.html#msg1837

I want to use single texture directly to a sprite.
Where can I find it?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Is it supported now?
« Reply #1 on: November 13, 2013, 10:19:15 am »
Yes. The component is Sprite From Texture. You can select a texture in project view, and in hierarchy, click "Create > tk2d > Sprite From Selected Texture".

J. Park

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Is it supported now?
« Reply #2 on: November 13, 2013, 11:27:06 am »
Then, Can I assign texture at runtime?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Is it supported now?
« Reply #3 on: November 13, 2013, 11:27:49 am »
You have to call Create on it - its in the todo to make it work by just assigning the texture.

J. Park

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Is it supported now?
« Reply #4 on: November 13, 2013, 11:47:10 am »
OK, Thanks.