예제 #1
0
 void OnInspectorPrefab(string name, TextManager.TextPrefab prefab)
 {
     EditorGUILayout.BeginHorizontal();
     EditorGUIUtility.labelWidth = 60f;
     prefab.prefab  = EditorGUILayout.ObjectField(name, prefab.prefab, typeof(TextAnimation), false) as TextAnimation;
     prefab.prewarm = EditorGUILayout.IntField("Prewarm", prefab.prewarm, GUILayout.Width(100f));
     EditorGUILayout.EndHorizontal();
     EditorGUIUtility.labelWidth = 0f;
 }
예제 #2
0
 void OnInspectorDebug(string name, TextManager.TextPrefab prefab)
 {
     EditorGUILayout.BeginHorizontal();
     EditorGUILayout.LabelField(string.Format("{0} : {1}/{2}", name, prefab.PlayCount, prefab.PlayCount + prefab.FreeCount));
     EditorGUILayout.EndHorizontal();
 }