2D Toolkit Forum

2D Toolkit => Support => Topic started by: mamamia on January 08, 2013, 11:12:27 am

Title: Removing textures included in atlas when building
Post by: mamamia on January 08, 2013, 11:12:27 am
Hi,

I have noticed all textures I include in atlases are exported in the final executable too. Is there anyway to avoid this? File size is too much.

Thanks in advance.
Title: Re: Removing textures included in atlas when building
Post by: unikronsoftware on January 08, 2013, 12:49:29 pm
If they are included, it is usually caused by one of two things:
1. You have the sprite collection in a directory called resources (even if it is a subdirectory under a resources directory)
2. You have a live reference to a tk2dSpriteCollection object (not a tk2dSpriteCollectionData) somewhere in your game.
Title: Re: Removing textures included in atlas when building
Post by: mamamia on January 09, 2013, 01:33:52 pm
Thanks a lot for this.
Title: Re: Removing textures included in atlas when building
Post by: unikronsoftware on January 09, 2013, 01:38:54 pm
What was the issue on yours?

In 1.90, there is a clear warning when a sprite collection is in a resources directory - it won't let you edit a sprite collection until you move it out. If there are any textures in a resources directory, you are presented with a warning box before you start editing it.
Hopefully that will address those issues permanently.