Experiences on ngui and native 2D mixed coverage

Source: Internet
Author: User

Finally, I got it almost done. Remember it and don't forget it.

Native2d itself can use sort layer to sort, and each layer has a different order in layer, so that each genie can naturally adjust who will cover who.

But ngui cannot be used together.

After being tortured for a long time, the following conclusions are drawn.

1. ngui is in the default layer of the sort layer, and the order in layer is 0.

2. Set the native 2D sprite to the same position as ngui when default and order in layer is 0, and adjust the Z axis at this time. The smaller the Z, the higher the Z.

3. Priority: Sort layer> order in layer> Z. Knowing this will make native 2D and ngui easy to get along.

Well, I am not forced to write code.

 

Supplement.

When using the ngui uilable, it may be because the Z axis of a uilable is adjusted, and other uilable will be changed. In this case, you can place your uilable on the panel to adjust the panel.

Experiences on ngui and native 2D mixed coverage

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.