In Unity 2021, after version 2021.1.4, when I created a new 2D project the camera gizmo the gizmo is not perfectly aligned with the scene grid.
Please see the image below:
The border bottom border of the camera gizmo is not aligned with the square grid of the scene.
The camera stay at 0,0,-10 as usual and has a size of 5 as usual.
Make this something fixed such as 2:1 and it will line up fine, but why do you care?
I’m guessing you either didn’t notice or didn’t have the Game Window set to Free Aspect.
You can anchor anything you want any way you want. If you want it to follow the left edge, you must anchor it there, otherwise you must do your own anchoring code, which would be madness considering the UI does it for you.
Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:
Oh, it’s useful when, for example, you want to align sprites from a border… Those are sort of like guides for me…
for example look at the picture below: the red square is “cut” and in fact the same happens in the game view.
Yes but I want to align not using canvas or other UI elements. Only sprite rendered element.