Author Topic: Sprite position moving with low values of ortho cam size  (Read 3367 times)

jonijoba

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Sprite position moving with low values of ortho cam size
« on: December 13, 2017, 08:02:44 PM »
Hi there!

While zooming on a Sprite using a NGUI ortho camera and by simply reducing the cam size, I found that the sprite position is changing with low cam size values.


Here is my basic  setup (unity4.7.2 with last NGUI version 3.11.4):

- a new scene
- then NGUI-> Create -> Sprite
- then NGUI camera size changes


Is there a solution to prevent the sprite from moving with cam size low values (high zoom)?

Thanks!
Joni

with ortho cam size at 0.3 (OK until around 0.3)


with ortho cam size at 0.03 (NOK)


with ortho cam size at 0.01 (NOK)


« Last Edit: December 13, 2017, 08:09:32 PM by jonijoba »

jonijoba

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Sprite position moving with low values of ortho cam size
« Reply #1 on: December 15, 2017, 09:19:20 PM »
Ok I found a solution: modifying manual height instead of camera size directly.

wiskyblandi1

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Sprite position moving with low values of ortho cam size
« Reply #2 on: December 24, 2017, 11:09:51 PM »
This information is interesting, I will try to use it. Thank you for this post.