hey guys, im working on a 2d side scroller based on the 2d tutorial. im working with 2d assets and using sprite manager to deal with the animation. I want to use the zoom features that is set up in the tutorial. it sets the camera distance on certain positions, but when I switch the view to orthographic the distance gets replaced with orthographic size...
so my question is this. dose anyone know what I should change in the code to get the camera to zoom out in orthographic mode?
ive tried to change the camera distance part to orthographic size but it was not it, at least not just that.
the reason for using orthographic view is that Im running into trouble with the assets that are in front and in the back, they are jumping around the z axis, it seems to be something unity dose to give a more realistic sense of depth.
The orthographicSize property of your camera actually is the correct value to change in order to zoom in and out when your camera is in orthographic mode.
Changing the orthographic size of your camera shouldn't affect anything else in your scene - i.e. it shouldn't cause anything to "jump around on the z axis", it should simple crop or expand your view to show a smaller or larger area.
This is very different from actually moving your camera closer or further from your object. You don't need to actually move the camera at all while you're doing this.
If this doesn't solve your problem, you might have to describe more clearly the problems that you're having with things "jumping around".
i have a problem with zooming in orthografic view:
i build my HUD with gameobjects, and if i change dthe orthographic size
i get super small/big HUD elements…
is there a simple way to scale them together with the O-size?