Unity5 Shader Stripping the solution that causes Lightmap to lose all

Source: Internet
Author: User

When using Scenemanager.loadscene, data from Lightmap and Navmesh are automatically loaded. Then you can specify Lightmapindex and Lightmapscaleoffset on the Meshrender.

It's a really handy feature.

These are the prerequisites.

Http://www.magicsite.cn/blog/Windows/cpp/cpp64011.html

Confused for an afternoon + one night.

See a Shader stripping setting on the Graphic settings panel ...

This reminds me of Unity's first launch of the Il2cpp, cutting the unused classes, and then causing the various baffling bugs ...

Yes, this shader stripping is turned on by default, Automatic Auto mode.

Steeds and tried to modify this setting to go

And then repack it, sure enough.

Unity5 Shader Stripping the solution that causes Lightmap to lose all

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.