Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: jonijoba on December 13, 2017, 08:02:44 PM

Title: Sprite position moving with low values of ortho cam size
Post by: jonijoba 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)
(https://image.ibb.co/mKHyUm/low3.jpg)

with ortho cam size at 0.03 (NOK)
(https://image.ibb.co/d1MWh6/low03.jpg)

with ortho cam size at 0.01 (NOK)
(https://image.ibb.co/h0KTUm/low01.jpg)

Title: Re: Sprite position moving with low values of ortho cam size
Post by: jonijoba on December 15, 2017, 09:19:20 PM
Ok I found a solution: modifying manual height instead of camera size directly.
Title: Re: Sprite position moving with low values of ortho cam size
Post by: wiskyblandi1 on December 24, 2017, 11:09:51 PM
This information is interesting, I will try to use it. Thank you for this post.