Hello Guest

Author Topic: Why the preview not match the game view  (Read 4189 times)

xusw

  • Newbie
  • *
  • Posts: 1
    • View Profile
Why the preview not match the game view
« on: July 22, 2013, 05:39:49 am »
Hi,I'm a new in unity.And I want to use 2d Toolkit to make my game faster.
But I encounter a problem that I can not carry on.

I set the tk2d camera
width:1024, height:768, Size:768, Projection:Orthographic

I Add a tk2d sprite in the Hierarchy and the position is (0,0,0) the scale is(1,1,1).It seems right in preview .(picture 1)
But when I run it,the scale and size is not right.(picture 2)

I must set the scale (1,1,1)/384.f to make the scale right.But the sprite is in the middle of the game view( it should be the lower left in the game view)(picture 3)

I'm sorry for my poor English,but someone can solve the problem?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Why the preview not match the game view
« Reply #1 on: July 22, 2013, 10:59:21 am »
1. There is a bug in Unity 3.x and 4.0 & 4.1 causing this issue. It has been fixed in the next Unity.
2. 2D Toolkit 2.1 also works around the bug, so update to that beta if you want to.
3. Your scene view is in perspective, switch it to orthographic.