5 Mart 2014 Çarşamba

NGUI Button isEnabled does not work BUG

Yeah,
If you set isEnabled = false of a UIButton in NGUI, the color of the button does not change even it is disabled.

It is a bug actually, you should change the NGUI isEnabled source code as follows:

public bool isEnabled
    {
        get
        {
            if (!enabled) return false;
            Collider col = collider;
            return col && col.enabled;
        }
        set
        {
            Collider col = collider;
            if (col != null) col.enabled = value;
            else enabled = value;
            UpdateColor(value, false);
        }
    }


Here is the link:
http://www.tasharen.com/forum/index.php?topic=6893.msg32520#msg32520

Note:
This bug is fixed after 3.x version, not sure which exactly.


BM FONT - How to get rid of black background from text

This is a weird issue I experience with BM Font.

Even if you select `White Text or Black Text with Alpha` option, it seems the BM Font does not recognize the setting and export the file with black backgorund.

Well, the solution is simple,

On Export Options, just select the Bit Depth as `32` not `8` (default).

Volla !