Hello Guest

Author Topic: Missing Apply Button when Slicing Sprite Sheets?  (Read 5514 times)

imnickb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Missing Apply Button when Slicing Sprite Sheets?
« on: April 03, 2013, 05:19:42 pm »
I'm following the documentation on how to slice a sprite sheet and after I got the grid adjusted, I don't see the apply button anywhere. I'm sure it's something stupid, like I didn't set up the window right or something. I created the sprite collection in the project view, clicked open editor and then drug a project view pane into the window so I could see the sprite sheet to drag it into the sprite collection. I followed the directions correctly (I think!) but I don't see the apply button anywhere... What am I missing? I attached a screenshot if that helps.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Missing Apply Button when Slicing Sprite Sheets?
« Reply #1 on: April 03, 2013, 10:45:19 pm »
So I understand correctly.
1. You've created a new "sprite Sheet"
2. You dragged the image in there
3. You set up the tile sizes, etc.
4. YOu don't see an apply button?

If so, can you let me know what version of Unity & 2D Toolkit you're using.
I tested this with the latest 1.92 release and saw no issues.

imnickb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Missing Apply Button when Slicing Sprite Sheets?
« Reply #2 on: April 04, 2013, 12:12:55 am »
That's correct. I followed those steps and there was no Apply button. I'm using Unity 4.1.0f4 and 2DToolKit 1.92. You can see that there's no Apply button in the attached screenshot. I was setting up the margins to get the grid looking correct and once it looked good, I still saw now Apply button. I kept adjusting and adjusting and eventually after zeroing everything out and starting over, the apply button appeared. Perhaps my grid settings weren't acceptable for some reason and the apply button was missing as a result? I'm still having hit and miss issues with the apply button not being there but eventually it shows up.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Missing Apply Button when Slicing Sprite Sheets?
« Reply #3 on: April 04, 2013, 12:17:47 am »
How strange.

Can you give me me
1. The dimensions of the texture
2. The settings at which the Apply button disappeared.

 So I can investigate this further, please?

imnickb

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Missing Apply Button when Slicing Sprite Sheets?
« Reply #4 on: April 04, 2013, 12:35:58 am »
It's a PSD file that's 2048 pixels wide x 117 pixels.

Here were the settings:
Tile Width 8
Tile Height 121
Tile Margin X -15
Tile Margin Y -4
Tile Spacing X 120
Tile Spacing Y 0

I think maybe the problem is that I thought the red overlay at the left of the grid represented the left margin, hence the negative margin values I entered, which is probably what was causing the issues.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Missing Apply Button when Slicing Sprite Sheets?
« Reply #5 on: April 04, 2013, 01:05:47 am »
Thanks.
Just checked the code, and its because your tile height is larger than the dimensions of the texture. Its meant to stop you from doing that, as it would be impossible to split up into tiles in that case.