Hello Guest

Author Topic: Textures used in Sprite Collections always Read/Write Enabled?  (Read 3119 times)

grit

  • Newbie
  • *
  • Posts: 14
    • View Profile
Textures used in Sprite Collections always Read/Write Enabled?
« 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.

Trigve

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Textures used in Sprite Collections always Read/Write Enabled?
« Reply #1 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Textures used in Sprite Collections always Read/Write Enabled?
« Reply #2 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.

grit

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Textures used in Sprite Collections always Read/Write Enabled?
« Reply #3 on: December 04, 2014, 06:20:48 pm »
I see, thank you very much.
Best, Grit.

kenglou.lee

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Textures used in Sprite Collections always Read/Write Enabled?
« Reply #4 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.