void OnEnable ()
{
SerializedProperty bit = serializedObject.FindProperty("bitmapFont");
mType = (bit.objectReferenceValue != null) ? FontType.Bitmap : FontType.Dynamic;
mList = target as UIPopupList;
if (mList.ambigiousFont == null)
{
mList.ambigiousFont = NGUISettings.ambigiousFont;
mList.fontSize = NGUISettings.fontSize;
mList.fontStyle = NGUISettings.fontStyle;
EditorUtility.SetDirty(mList);
}
//if (mList.atlas == null)
//{
// mList.atlas = NGUISettings.atlas;
// mList.backgroundSprite = NGUISettings.selectedSprite;
// mList.highlightSprite = NGUISettings.selectedSprite;
// EditorUtility.SetDirty(mList);
//}
}