There is a bug when using reference font on UIPopupList.
When I set a reference font for UIPopupList, it converted to concrete font automatically.
There is a problem in auto-upgrade code for old version.
It should be change to
UIPopupList.OnEnable
// Auto-upgrade to the true type font
if (trueTypeFont == null && bitmapFont != null && bitmapFont.isDynamic)
{
if( bitmapFont.replacement == null )
{
trueTypeFont = bitmapFont.dynamicFont;
bitmapFont = null;
}
}
UIPopupList.OnValidate
else if (fnt != null)
{
// Auto-upgrade from 3.0.2 and earlier
if (fnt.isDynamic)
{
if( fnt.replacement == null )
{
trueTypeFont = fnt.dynamicFont;
fontStyle = fnt.dynamicFontStyle;
fontSize = fnt.defaultSize;
mUseDynamicFont = true;
}
}
else
{
bitmapFont = fnt;
mUseDynamicFont = false;
}
}
Thank you.