Unity2017.2错误集合

Unity2017.2错误集合

1 一般错误

1.1 运行即报错:Unsupported texture format 0x13

错误描述
开启了XR Settings中的Virtual Reality Supported之后,一运行就报错:Unsupported texture format 0x13

解决方法
该问题为Unity Bug,详见bug追踪:https://issuetracker.unity3d.com/issues/xr-unsupported-texture-format-dot-dot-dot-error-is-displayed-in-the-editor
该bug已在Unity2017.2.0p1版本中解决,所以解决方法为安装该补丁版本
https://unity3d.com/cn/unity/qa/patch-releases?version=2017.2

2 发布错误

2.1发布时报错:Shader error in ‘Sprites/Mask’

错误描述
对工程进行发布时,报错:

1
Shader error in ‘Sprites/Mask’: undeclared identifier ‘IN’ at /Program
Files/Unity201720p3/Editor/Data/CGIncludes/UnityCG.cginc(766) (on
d3d11)

Compiling Vertex program with PLUGIN_STEREOX Platform defines:
UNITY_ENABLE_REFLECTION_BUFFERS
UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1
UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING
UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP
UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME

2
Error building Player: Shader error in ‘Sprites/Mask’: undeclared
identifier ‘IN’ at /Program
Files/Unity201720p3/Editor/Data/CGIncludes/UnityCG.cginc(766) (on
d3d11)

Compiling Vertex program with PLUGIN_STEREOX Platform defines:
UNITY_ENABLE_REFLECTION_BUFFERS
UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1
UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING
UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP
UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME

解决方法
该问题同样为Unity bug,详见:
https://issuetracker.unity3d.com/issues/building-with-vrworks-fails-with-a-shader-error-in-unitycg

你可能感兴趣的:(Unity3D)