Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors building for Android
#6
(04-06-2018, 10:25 AM)danblack Wrote: Hi,

That helps a bit thanks. Changing line 83 & 84 in ObiEllipsoids.cginc fixes the third error, but allows the compiler to get further and find two more in ParticleShader.Shader. These are also caused by UNITY_MATRIX_V and fixed by adding a cast in the same way. 

This doesn't help with the first two errors though, on lines 415 and 503 of UnityStandardCoreBackfaces.cginc. They seem to be caused by 
UNITY_LIGHT_ATTENUATION(atten, i, s.posWorld);
(also line 503 seems to be missing a semi-colon)

Any ideas about what is causing this and how to fix it. It's been a week since I bought this now and I'd really like to get it compiling. 

Cheers,
Dan

If you're not using the standard backfaces material (if you don't know, you definitely aren't) a quick fix would be to just remove these files:
- StandardBackfaces.shader
- UnityStandardCoreBackfaces.cginc
- UnityStandardCoreForwardBackfaces.cginc
- UnityStandardCoreForwardSimpleBackfaces.cginc

They are all found in Obi/Resources/ObiMaterials. These are failing to compile probably due to differences in 2018's standard shader implementation. We'll make sure to update them in upcoming versions.
Reply


Messages In This Thread
Errors building for Android - by danblack - 28-05-2018, 11:09 AM
RE: Errors building for Android - by danblack - 30-05-2018, 08:13 AM
RE: Errors building for Android - by danblack - 01-06-2018, 07:15 AM
RE: Errors building for Android - by josemendez - 01-06-2018, 01:52 PM
RE: Errors building for Android - by danblack - 04-06-2018, 10:25 AM
RE: Errors building for Android - by josemendez - 04-06-2018, 12:17 PM
RE: Errors building for Android - by danblack - 04-06-2018, 03:25 PM