- Home /
 
 
               Question by 
               mtavares_bhvr · Sep 09, 2015 at 06:57 PM · 
                editorinspectorfont  
              
 
              Accessing hidden font parameters for Custom Editor
I am trying to create an improved custom editor for custom fonts. The base of my source is below:
 using UnityEngine;
 using UnityEditor;
 using System.Collections;
 
 [CustomEditor(typeof(Font))]
 public class CustomFontEditor : Editor {
 
 
     void Awake(){
     }
 
     public override void OnInspectorGUI()
     {
         base.OnInspectorGUI();
         Font font = (Font)target;
     }
 
               Now this works as expected in terms of it triggering when editing a font in the Inspector. However there are properties in the Font that show up in the base inspector which I can't seem to find in the Font class itself, namely:
Ascii Offset
Kerning
Line Spacing
Character Spacing
Character Padding
Convert Case
The only exposed properties are:
Ascent read only
Character Info[] read/write
Dynamic read only
Font Name read/write
Font Size read only
Hide Flags read/write
Line Height read only
I'm wondering how can I access these unseen properties as they'd be essential for creating a cohesive editor replacement.
               Comment
              
 
               
              Your answer