Hello Guest

Author Topic: What is in the tk2d folder in the Resources folder?  (Read 4046 times)

Dipso

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Pure Fun Games
What is in the tk2d folder in the Resources folder?
« on: October 11, 2015, 09:06:23 am »
Hi

When we set up different platforms for sprite collections then 2DToolkit creates a folder "tk2d" in the "Resources" folder.
There are multiple assets stored in the "tk2d" folder.

I did a search to try and determine what assets are stored in the "tk2d" folder and found this post:
https://www.reddit.com/r/Unity3D/comments/3d63lu/unity_5_asset_bundles_and_2dtoolkit_with_platform/

The post states:
I have also modified tk2DSystem so that tk2dResource files are stored in Assets/tk2dResources instead of Assets/Resources/tk2d so that the textures of the Sprite Collections they reference are not included in the build.


Can you please clarify what this means?

I want to make sure it does not mean that individual sprite images are included in the build when "tk2d" is in the "Resources" folder.
In other words: If player has 10 sprite images packed into 1 texture atlas, then the 10 sprite images are not included in the build, only the 1 texture atlas.

Pure Fun Soccer brings arcade action to your iPhone, iPad and iPod touch.
Try out the free Lite version: https://itunes.apple.com/us/app/pure-fun-soccer-lite/id533048090?mt=8
Blog / Portfolio: http://www.diorgo.com/

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: What is in the tk2d folder in the Resources folder?
« Reply #1 on: October 14, 2015, 11:34:54 am »
Your source images are never included in the build, unless you intentionally use them somewhere.
The tk2d folder contains links to the platform sprite collections that are loaded at runtime.


Dipso

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Pure Fun Games
Re: What is in the tk2d folder in the Resources folder?
« Reply #2 on: October 16, 2015, 01:30:49 pm »
Thanks for the feedback  :)

Pure Fun Soccer brings arcade action to your iPhone, iPad and iPod touch.
Try out the free Lite version: https://itunes.apple.com/us/app/pure-fun-soccer-lite/id533048090?mt=8
Blog / Portfolio: http://www.diorgo.com/