Author Topic: UILabel text wont show without a Material assigned  (Read 5543 times)

eyeofhorus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
UILabel text wont show without a Material assigned
« on: April 13, 2017, 05:03:22 AM »
unity 5.4.1
ngui 3.11.2

Hello,
I have a simple UILabel added to the scene with Unity font Arial, however the text does not display on the screen if the material field is left blank.

Also the bbcode seems not working, the bbcode looks like being parsed:
[ff0000]testing[-] will display testing on screen, but it still appears black in color.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel text wont show without a Material assigned
« Reply #1 on: April 14, 2017, 04:38:25 PM »
Works fine here... Just made a new scene, ALT+SHIFT+L, assigned the Unity's Arial font and used your "[ff0000]testing[-]" text, and it shows as red. Do you have any more details? Did you change the names of NGUI's shaders? Do they have any compile errors for your target platform?

Also see http://www.tasharen.com/forum/index.php?topic=15232.0

eyeofhorus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: UILabel text wont show without a Material assigned
« Reply #2 on: April 15, 2017, 10:02:08 PM »
I think it's related to the shader compilation problem I mentioned on the other thread