Hello Guest

Author Topic: Size of Sprites in Scene  (Read 5055 times)

elsenior

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Size of Sprites in Scene
« on: August 21, 2012, 12:42:54 am »
Hey there,

I just purchased 2D Toolkit and have a general question about the sizing of sprites in the scene.

There is a tk2d camera in my scene set to 960x640 resolution. The Orthographic Size is 480, that was the default.

Now I have a sprite that is my level background with a size of 960x640.

Shouldn't that then cover the whole screen, size-wise?

Right now it comes out way too small. If I set the sprite size to 960x640 it is way too big.

This might be a stupid qestion but I thought that's how it is supposed to work?

Thanks

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Size of Sprites in Scene
« Reply #1 on: August 21, 2012, 12:52:44 am »
Hi elsenior,

1. When using a tk2dCamera, ignore the settings on the "normal" camera. First thing to do: click on the tk2dCamera, tick Force Editor Resolution, and set it to 960 x 640. In the game view set resolution to 960x640 or 3:2. Now whatever you see in the game view is what you'll get in game.

2. If your level background sprite is too small, it probably means the collection wasn't created with "Use tk2dCamera" ticked. Try again with that ticked.

Always refer to the tk2dCamera preview window, rather than the other views. This is because of a bug in Unity (which has been reported, of course).

p.s. I assume that you're using 1.76 + patch1 on Unity 3.5.5

elsenior

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Size of Sprites in Scene
« Reply #2 on: August 23, 2012, 12:05:46 pm »
Ok I fixed it. Had to recreate the SpriteSheet.

Thanks