UNITY5_UGUI_ Basic Knowledge 1_canvas Canvas

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.