2D Toolkit Forum

2D Toolkit => Support => Topic started by: grit on December 03, 2014, 10:32:56 pm

Title: Textures used in Sprite Collections always Read/Write Enabled?
Post by: grit on December 03, 2014, 10:32:56 pm
Dear TK2D team,
I just noticed that in the import settings of my textures I use in sprite collections, I cannot disable the Read/Write Enabled flag. I use the "Advanced" texture type. I wonder why this is and if it has a bad side effect, because I read that enabling this, means that for every texture a copy is created in memory. Is this the case and if so, how can I avoid this?
Kind regards.
Title: Re: Textures used in Sprite Collections always Read/Write Enabled?
Post by: Trigve on December 04, 2014, 08:22:57 am
I don't think it has any effect, because tk2D don't reference those sprites in the build, it creates it's own sprite atlas. So the textures are used only in the editor and not referenced outside it.
Title: Re: Textures used in Sprite Collections always Read/Write Enabled?
Post by: unikronsoftware on December 04, 2014, 10:00:16 am
Exactly what Trigve says - these textures aren't used in game, and are not included in the build.
Title: Re: Textures used in Sprite Collections always Read/Write Enabled?
Post by: grit on December 04, 2014, 06:20:48 pm
I see, thank you very much.
Best, Grit.
Title: Re: Textures used in Sprite Collections always Read/Write Enabled?
Post by: kenglou.lee on December 17, 2014, 09:26:42 am
I think you had to make sure you are not putting all the sprite collections' textures under Resources folder as Unity will pack whatever inside that folder.