Author Topic: [Shader] Unlit Transparent Colored is Magenta in 3.11.4  (Read 213 times)

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
[Shader] Unlit Transparent Colored is Magenta in 3.11.4
« on: August 07, 2017, 02:51:13 PM »
Just updated from 3.11.1 to 3.11.4 and noticed some quirks with the Unlit Transparent Colored shader. It draws everything Magenta, and even shows up as such in the inspector:


NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: [Shader] Unlit Transparent Colored is Magenta in 3.11.4
« Reply #1 on: August 07, 2017, 03:16:37 PM »
Forgot to add the console errors:

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: [Shader] Unlit Transparent Colored is Magenta in 3.11.4
« Reply #2 on: August 07, 2017, 03:20:42 PM »
`UNITY_VERTEX_INPUT_INSTANCE_ID` should be `UNITY_INSTANCE_ID` in Unity 5.4

Looks like that seems to fix the error  ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 316
  • -Receive: 1149
  • Posts: 22,027
  • Toronto, Canada
    • View Profile
Re: [Shader] Unlit Transparent Colored is Magenta in 3.11.4
« Reply #3 on: August 12, 2017, 12:25:22 PM »
As always, officially NGUI supports only the latest version of each major Unity release -- meaning 4.7, 5.6 and 2017. Unity changed some shader defines, forcing shaders to auto-upgrade in Unity 5.5-5.6, making all projects opened with that version of Unity incompatible with the previous. It's not possible to change it back, because as soon as you tab back to Unity, it force-upgrades it again.