All UI components are placed on canvas canvases
In a scene, there can be multiple canvases, all UI elements under the canvas of sub-objects
There are three modes, each of which has a picture of the truth.
. Screen Space–overlay This mode does not require a UI camera, and the UI will always appear at the front of all cameras. .
In this mode, drag the game to size, the UI automatically adapts to zoom, Canvas's recttransfrom is not editable
Here is a parameter
See details:
. Screen Space-camera This mode is what I decided to take and it needs to provide a uicamera.
This is very similar to the Ngui principle, if I want to add effects in front of the UI I can create a camera with a depth greater than this uicamera on the line.
. World Space This is the full 3D Ui,ugui example that mostly uses it
Canvas no longer affects recttransfrom in this mode
UNITY5_UGUI_ Basic Knowledge 1_canvas Canvas