Hello Guest

Author Topic: Sprite Collection Does not Show up in Collection Drop Down  (Read 5304 times)

WRECKER

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Sprite Collection Does not Show up in Collection Drop Down
« on: July 23, 2013, 02:00:17 am »
Hi,

I'm new to unity and 2d Toolkit.

I can't get my sprite collection to show up under the sprite collection drop down in the sprite animation editor.



Here are the steps I take:
Create a New Unity Project
Create a folder under assets to hold the sprites.
Copy sprites to folder.

Goes to Windows -> Asset Store.
Click on download Icon and click on import 2d Toolkit Import.

Right click on “Assets” folder and click create -> tk2d -> spritecollection.

I notice something odd here. The SpriteCollection does not show up in the Project tab but does show up under assets.



I drag my sprite collection to the “Hierarchy”
I open the editor and drag my sprite images into the editor.
I click “Commit” and close the window

Right click on “Assets” folder and click create -> tk2d -> spriteanimation.

Again I see no sprite animation in the project folder but it is in the Assets folder in the middle pane.

Drag the “sprite animation” to the “Hierarchy”.
Clicked on the sprite animation in the Hierarchy and click on the editor.
Clicked create -> clip.

I click on the Collection Drop down and it does not contain my sprite collection.


I tried clicking on 2D Toolkit -> rebuild index. That did not help.

When I go back to the sprite collection editor my sprites are in there.

gary-unikronsoftware

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 74
    • View Profile
Re: Sprite Collection Does not Show up in Collection Drop Down
« Reply #1 on: July 23, 2013, 09:41:01 am »
Hi Wrecker,

After you have created your sprite collection in the project window, edit it from there to add your sprites rather than dragging it to the Hierarchy window.  Also when you are creating your sprite animation do it from the project window rather than the hierarchy window.  The new Whack-a-Mole tutorial contains step-by-step instructions on creating a sprite collection http://www.unikronsoftware.com/2dtoolkit/docs/2.10/tutorial/whack_a_mole/game_objects.html and also sprite animations http://www.unikronsoftware.com/2dtoolkit/docs/2.10/tutorial/whack_a_mole/rest_of_game.html.  Hope this helps.

WRECKER

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Sprite Collection Does not Show up in Collection Drop Down
« Reply #2 on: July 23, 2013, 05:23:28 pm »
Thank you very much that was it.

I needed to open and use the editor when in the project window and not drag it into the hierarchy window.

I will be sure to check out the whack a mole tutorial as well.