2D Toolkit > FAQs
Font transparency
(1/1)
VeTaL:
Tried
textHero.color.a = 10;
but it is not possible to set value this way.
unikronsoftware:
You cant change this on a property directly. You'll need to create a copy, change and set it back. Eg.
Color c = textMesh.color;
c.a = 1.0f;
textMesh.color = c;
Also don't forget, the range is 0..1 not 0..255
Don't forget to call
textMesh.Commit() once you're done.
VeTaL:
Thanks for really fast answer :)
I guess, this is nice question to your FAQ collection.
Navigation
[0] Message Index
Go to full version