1
NGUI 3 Support / Assigning string to GUIStyle
« on: August 20, 2014, 10:32:46 AM »
Hey guys
I was reading through some NGUI code when I hit a bunch of lines that look like:
Where mBlueDot is a GUIStyle.
This is absolutely fascinating to me on a bunch of levels, because I didn't know you could assign strings to GUIStyles, and I don't know what the operation here is actually intending to do.
Can someone please explain this to me?
Thanks,
Ves
I was reading through some NGUI code when I hit a bunch of lines that look like:
- if (mBlueDot == null) mBlueDot = "sv_label_1";
Where mBlueDot is a GUIStyle.
This is absolutely fascinating to me on a bunch of levels, because I didn't know you could assign strings to GUIStyles, and I don't know what the operation here is actually intending to do.
Can someone please explain this to me?
Thanks,
Ves