Hello Guest

Author Topic: tk2dCamera ZoomFactor issue  (Read 4019 times)

geovizz

  • Newbie
  • *
  • Posts: 1
    • View Profile
tk2dCamera ZoomFactor issue
« on: April 24, 2017, 03:06:28 pm »
Goal: Make x1-xn camera zoom to reach pixel perfect camera scale.

What i do:

Code: [Select]

float zoomFactor = 3f;
Rect rect = new Rect(0.25f,0.25f, 0.75f,0.75f); // pseudo-values for example

_gameplayCamera.CameraSettings.rect = rect;
_gameplayCamera.ZoomFactor = zoomFactor ;

Result: Everything works as i expect in Unity Editor:



Issue: Hovewer, it doesn't work when i run game build. Any ZoomFactor looks same - upscaled to fit screen.



All overrides for camera switched off:



IMPORTANT NOTE:

The issue only appears when i change _gameplayCamera.CameraSettings.rect

Any thoughts what it is?

« Last Edit: April 24, 2017, 03:08:39 pm by geovizz »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dCamera ZoomFactor issue
« Reply #1 on: May 24, 2017, 11:23:26 pm »
I am just following up to the email I responded to - what version of Unity are you using, and is this still an issue for you?