UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Does not build for Android Platform Target

Open StephenHodgson opened this issue 8 years ago • 8 comments

Unity 2017.2 Android Build target

Shader error in 'GLTF/GLTFStandard': '' : 'UNITY_STANDARD_SIMPLE' already defined at /Program Files/Unity 2017.2/Editor/Data/CGIncludes/UnityStandardCoreForward.cginc(6) (on gles)
Error building Player: Shader error in 'GLTF/GLTFStandard': '' : 'UNITY_STANDARD_SIMPLE' already defined at /Program Files/Unity 2017.2/Editor/Data/CGIncludes/UnityStandardCoreForward.cginc(6) (on gles)

StephenHodgson avatar Feb 10 '18 07:02 StephenHodgson

Make sure you're using the latest version of UnityGLTF. That shader was replaced a few weeks ago.

stevenvergenz avatar Feb 15 '18 18:02 stevenvergenz

I'm seeing the same error on Android with the new shaders, tested with Unity 5.6, 2017.1, and 2017.2. Building the ShaderRentention scene definitely throws it.

Shader error in 'GLTF/PbrMetallicRoughness': '' : 'UNITY_STANDARD_SIMPLE' already defined at /Program Files/Unity/Editor/Data/CGIncludes/UnityStandardCoreForward.cginc(6) (on gles)

Compiling Vertex program with DIRECTIONAL
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF3 UNITY_NO_FULL_STANDARD_SHADER SHADER_API_MOBILE UNITY_HARDWARE_TIER1 UNITY_COLORSPACE_GAMMA
Shader error in 'GLTF/PbrSpecularGlossiness': '' : 'UNITY_STANDARD_SIMPLE' already defined at /Program Files/Unity/Editor/Data/CGIncludes/UnityStandardCoreForward.cginc(6) (on gles)

Compiling Vertex program with DIRECTIONAL
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF3 UNITY_NO_FULL_STANDARD_SHADER SHADER_API_MOBILE UNITY_HARDWARE_TIER1 UNITY_COLORSPACE_GAMMA

keveleigh avatar Feb 15 '18 21:02 keveleigh

Were any of you able to resolve this ? I am seeing the same issue using unity 2017 and building for android . Help would be appreciated !!!

alter-sachin avatar Mar 07 '18 06:03 alter-sachin

I'm also getting this error when building for android in Unity 2017.2.0 . Mostly something is defined multiple times. like Assets/UnityGLTF/Scripts/UniformMaps/MetalRoughMap.cs(3,31): error CS0433: The imported type GLTF.Schema.AlphaMode' is defined multiple times Assets/UnityGLTF/Scripts/Cache/AnimationCacheData.cs(11,10): error CS0433: The imported type GLTF.AttributeAccessor' is defined multiple times Assets/UnityGLTF/Scripts/Cache/TextureCacheData.cs(7,22): error CS0433: The imported type `GLTF.Schema.Texture' is defined multiple times

I'm getting 35 errors like this that something is defined multiple times.

smtabatabaie avatar Apr 16 '18 13:04 smtabatabaie

Facing this issue for 2018.2 as well

alt-ctrl-dev avatar Jul 29 '18 03:07 alt-ctrl-dev

Facing this issue as well! Anyone found any got it working???

taharaza16 avatar Jul 30 '18 06:07 taharaza16

@taharaza16 try this solution

alt-ctrl-dev avatar Jul 30 '18 06:07 alt-ctrl-dev

Check #540

marcspraragen avatar Jan 02 '20 15:01 marcspraragen