[Unity3D] [NGUI] loop Scroll View

Source: Internet
Author: User

NGUIForum: 333417608


NGUI version 3.0.9 f4

Script: use 10 or fewer items to simulate hundreds of item data. During the sliding process, if it is dragged to the last side, the first part will be used to complete the position. Therefore, you must set the data of the item with the correct complement. The same is true when sliding to the front. Use the last one to fill the position.


Method:

1. Place the script on the UIGrid object under the Scroll View.


2. Check the Restrict Within Panel of UIScrollView.

3. Check UIPanel Cull in Scroll View.


4. Put a UIWidget on each Item and adjust it to a proper size (use its Visiable)


5. Just provide ideas. Learn how to update the content of each Item.

6. It should be okay. Add a group question if you have any questions.


Code: Add a group333417608.

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.