etting pink textures in build

来源:互联网 发布:dota2看视频软件 编辑:程序博客网 时间:2024/06/06 07:21

This is expected behaviour - when compiling a build, Unity only includes those shaders that it knows are required (i.e. are assigned to a material in the scene). If you want to change a shader programmatically at runtime, Unity won't know to include that shader unless you explicitly tell it to.

To resolve this, go to Edit -> Project Settings -> Graphics and add the Toon/Basic Outlineshader to the list of Always Included Shaders.

alt text

0 0
原创粉丝点击