UGUI level option interface

1.Image组件—“Source Image”,Set Native Size.

2.Image组件—“Image Type”——Sliced

  Edit the picture you want to zoom in and out, Sprite Editor, using the nine-square grid.

3. Create an empty object (as a parent object), add Component-Layout-Grid Layout Group (the following sub-objects are automatically arranged)

    There is a difference between creating an empty object and creating a Panel as a parent object!

4. The anchor point problem is an easily overlooked but very important point in the GUI.

5. Effective use of Prefabs, complete mapping modification by changing Prefabs later.

6. Making a scrolling picture list

   (1) Tab icons are neatly arranged

   (2) Create an Image component - "background image", named ScrollPanel (as the parent object, as the Mask), and then place the tab under this background image as a child object.

   (3) Add the "Scroll Rect" sliding component to the "background image", and the Content object is a collection of tab icons to control the child objects.

   (4) Add the "Mask" component to the "Background Image".

   (5) Sliding (paging) script according to the number of pages

   (6) Radio button, enter the formulation page, and associate with the mouse sliding script.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324972610&siteId=291194637