2D Toolkit Forum

2D Toolkit => Support => Topic started by: J. Park on November 13, 2013, 07:22:34 am

Title: Is it supported now?
Post by: J. Park 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?
Title: Re: Is it supported now?
Post by: unikronsoftware 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".
Title: Re: Is it supported now?
Post by: J. Park on November 13, 2013, 11:27:06 am
Then, Can I assign texture at runtime?
Title: Re: Is it supported now?
Post by: unikronsoftware 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.
Title: Re: Is it supported now?
Post by: J. Park on November 13, 2013, 11:47:10 am
OK, Thanks.