I am using Unity 5 and I started to make a menu scene. When I made the canvas, all of values under the Rect Transform
component are locked and it says "some values driven by Canvas." The only thing I can change is the z position when using the gizmo in the editor. I can't reset the position or anything. Why is this happening?
I searched a bit and I learned that you can move canvas like a normal gameobject.
To change the screen size, go to the Game window (accessed by the menu "Window->General->Game"). At the top of the window will be a screen size menu (outlined in green, below) to change the screen size. When pressed, it will display the list of screen sizes that will be emulated.
For a non-stretching Rect Transform, the position is set most easily by setting the anchoredPosition and the sizeDelta properties. The anchoredPosition specifies the position of the pivot relative to the anchors. The sizeDelta is just the same as the size when there's no stretching. Save this answer.
This means that the canvas's canvas component has it's render mode
set to Screen space - overlay
. This forces it to be the size of the screen. Change it to World Space
and it will allow you to resize it and move it around.
Canvas is depend on game tab in your window panel. Adjust panel by use of close tab or resize panel or doc game panel. It will help you make default 800 X 600 canvas.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With