Author Topic: Dynamic Font 2.6.1d: set text not working correctly  (Read 2700 times)

anhpham

  • Guest
Dynamic Font 2.6.1d: set text not working correctly
« on: May 08, 2013, 08:39:15 AM »
Step 1:
label.text = "abc";
-> work perfectly

Step2:
label.text = "adef";
-> show "a" only

The material was cached. If I set label.material = null before set text at step 2, it works perfectly

Please fix it!
Thank you

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic Font 2.6.1d: set text not working correctly
« Reply #1 on: May 08, 2013, 05:38:00 PM »
What do you mean the material was cached?

anhpham

  • Guest
Re: Dynamic Font 2.6.1d: set text not working correctly
« Reply #2 on: May 08, 2013, 07:54:50 PM »
I read that if the material of label is not NULL, don't set material again.

Back to the example, first I set text = "abc", I think the material is only contain images of "a", "b" and "c"
Then, I set text again = "adef", the material not contains "d", "e" and "f", so it can be showed "a" only.

Other example, if we set text = "adeb" at step 2, it shows "a  b"

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic Font 2.6.1d: set text not working correctly
« Reply #3 on: May 08, 2013, 07:55:49 PM »
Works perfectly fine on my end -- both with the default material, and with a custom one.

anhpham

  • Guest
Re: Dynamic Font 2.6.1d: set text not working correctly
« Reply #4 on: May 08, 2013, 07:58:43 PM »
Sorry I forgot a point.

It works perfectly on the Unity Editor, but not correct on my Android device

anhpham

  • Guest
Re: Dynamic Font 2.6.1d: set text not working correctly
« Reply #5 on: May 13, 2013, 07:51:17 AM »
Please support! because we edited your code (set material = null before set text again), we got a new bug which the "0" char sometime be disappeared

So, please fixed the bug which can't set text again in smartphone

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic Font 2.6.1d: set text not working correctly
« Reply #6 on: May 13, 2013, 10:52:18 AM »
I can't fix something I can't reproduce. It works perfectly fine on my Android tablet. I'm attaching my test scene.