Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fxfx

Pages: [1]
1
Support / Re: Merging projects
« on: October 23, 2015, 01:25:20 am »
I finally got the Sprites to show.
Just in case anyone encountered the same problem. For me, this is how I did it:
1. Export the graphics & Sprite Collections (including the Data) from Project 1 and Import them to Project 2.
2. In Project 2, select each imported Sprite Collection, Open Editor, and click Commit. You must do this to all imported Sprite Collections.
3. Finally Export the rest of assets from Project 1 and Import them to Project 2.

2
Support / Merging projects
« on: October 22, 2015, 09:04:01 pm »
I am trying to merge 2 projects. Both of them use 2D Toolkit Sprites + Sprite Collection.
I exported Unity package with the Scenes, SpriteCollection (including the data) from project 1. Then I imported the package into project 2. The problem is all the sprites are gone. The Components are there, but it only display the SpriteCollection name. No sprites.

I already made sure all Sprite Collections have different names before merging them.
What else did I miss?

3
Support / Question regarding missing sprites in 4x platform
« on: August 21, 2015, 08:28:19 am »
I'm wondering how 2D Toolkit handles missing sprites in additional platform such as 4x.

For example, I have 3 sprites (A, B, C) in a Sprite Collection. Then I add 2x and 4x platforms for those sprites. Everything works perfectly when I have all correct resolution images in 2x and 4x folders.

But what if there is no sprite C in 4x folder? There are only sprite A & B.
When my app use 4x and want to display the sprite C, what will happen?
Will 2D Toolkit display the 2x version of sprite C?

4
Support / Re: Spritedefinitions returning zero
« on: June 17, 2015, 07:25:45 pm »
It works. Thanks!  :)

5
Support / Spritedefinitions returning zero
« on: June 17, 2015, 04:43:48 pm »
I am trying to get a list of all sprite names in a Sprite Collection during runtime. I put the data file in Resources folder, and then try to get all the names by code:

tk2dSpriteCollectionData atlas = Resources.Load("atlas", typeof(tk2dSpriteCollectionData)) as tk2dSpriteCollectionData;

foreach (tk2dSpriteDefinition spritedefinition in atlas.spriteDefinitions) {
           Debug.Log(spritedefinition.name);
}

The weird thing is that it works for one Sprite Collection, and not the other. The other Sprite Collection is showing 0 spriteDefinitions count.
I checked and the only difference between the two Sprite Collection is that the one returning 0 has 3 platforms (@1x, @2x, @4x)

Any help will be appreciated. Thanks!

Pages: [1]