Author Topic: UIDrawCall.CreateMaterial bug  (Read 3529 times)

Asse

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 70
    • View Profile
UIDrawCall.CreateMaterial bug
« on: November 27, 2013, 07:46:46 AM »
It seems like you have a bug in the UIDrawCall.CreateMaterial method.

  1. string shaderName = (mMaterial != null) ? mShader.name : ((mMaterial != null) ? mMaterial.shader.name : "Unlit/Transparent Colored");

should be

  1. string shaderName = (mShader != null) ? mShader.name : ((mMaterial != null) ? mMaterial.shader.name : "Unlit/Transparent Colored");

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDrawCall.CreateMaterial bug
« Reply #1 on: November 27, 2013, 10:02:41 AM »
You're right, thanks! I will fix it in the next update.