|
Post by miguel on Sept 14, 2020 19:53:33 GMT
Hi,
I'm wondering if I'm missing something but when calling the ProCamera2D.Zoom function and passing, for example, -2f as the zoomAmount parameter, the camera moves ~7 units on the Z axis. Isn't it supposed to move 2 units instead?
My end goal is to make it so when something is spawned, the camera zooms in by the maximum allowed (as set in the PanAndZoom component). I'm able to do so using DOTween but then zooming with the scroll wheel becomes messed up.
Thanks in advance!
|
|
|
Post by miguel on Sept 14, 2020 20:07:35 GMT
Just found out about the CalculateScreenSize function which fixes the zooming issue when manually moving the camera Still curious about the Zoom function though!
|
|
|
Post by Luís Pedro Fonseca on Sept 14, 2020 21:17:04 GMT
Hi miguel, the Zoom method takes "camera size" input, i.e. you can define how much the camera will increase/decrease in size and not in actual movement units. Does that make it clearer?
|
|
|
Post by miguel on Sept 14, 2020 21:39:48 GMT
Ah gotcha, that makes sense. Thanks for your help!
|
|