Have you met these pits in Unity? A

Source: Internet
Author: User
Tags unity 5

For the sake of the hard work of the program staff to add less classes, to share some of the project development process encountered some of the pits

The environment I'm using is Unity 5.6.3P3 version management is git

(1) Although it is known that Unity uses the serialization method of Yaml (the pronunciation of 90% reads incorrectly ~~! ), but unity is based on YAML in three ways, text mode binary mode and mixed mode

Where does it hang? when the two convert to each other, not completely reversible , git will recognize it, the text to binary, and then binary to the text, there will be some more YAML version number description (Don't say I'm picky, I this is the person ~~! )

(2)Unity 52 times for the same resources to package , out of the assetbundle is not the same (Unity very early official already know, but is unwilling to change, never seen such a brazen engine, A front-line developer always wipes your butt .... ), how to do? Self-generated by the manifest analysis relies on the MD5 of the file itself, if unity itself assetbundle regeneration, once found, refused to submit the repository

(3) Material ball A, with shader B, the material ball refers to the map C, and then a for shader, from B to c,c with a new map D, when you look at a reference, you will find a quoted C and d,unity have magical memory function , Unity remembers your history on the material ball , which can cause your assetbundle to be very large.

(4) Unity a lot of time, smart, a new particle, will identify the default material ball, and the material ball is Standardshaer (mobile platform never used shader), once the omission Standardshader, The size of the assetbundle will grow larger.

(5) This is a colleague of mine said:LOD level if not implemented in the shader, when the shader to switch LOD, unity on the phone will crash

The time is too late, it is written here, will continue to update

PS: (Baidu Game SDK, when clicking on the floating window, will be secretly face to change the resolution of the phone, some phone directly crashes, too sinister, programmers do not embarrass programmers)

Have you met these pits in Unity? A

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.