I ask the question in this topic:
http://www.tasharen.com/forum/index.php?topic=4241.msg52342#msg52342but no one help.So I post a new topic waiting for help:
I select "DynamicFont_WithSymblo".But it's still none(look at the attachment).
Then I changed OnBitmapFont and test it:
void OnBitmapFont (Object obj)
{
serializedObject.Update();
SerializedProperty sp = serializedObject.FindProperty("mFont");
sp.objectReferenceValue = obj;
serializedObject.ApplyModifiedProperties();
NGUISettings.ambigiousFont = obj;
Debug.Log("objectReferenceInstanceIDValue:" + serializedObject.FindProperty("mFont").objectReferenceInstanceIDValue);
serializedObject.Update();
Debug.Log("objectReferenceInstanceIDValue:" + serializedObject.FindProperty("mFont").objectReferenceInstanceIDValue);
if(serializedObject.FindProperty("mFont").objectReferenceValue == null)
Debug.Log("objectReferenceValue is null");
}
The result is:
objectReferenceInstanceIDValue:9992.
objectReferenceInstanceIDValue:0.
objectReferenceValue is null
How to use UIFont(Dynamic) in NGUI3.0.7?