Example #1
0
 private PropertyDrawer GetPropertyDrawerForField(FieldInfo field)
 {
     DrawerAttribute[] drawerAttributes = (DrawerAttribute[])field.GetCustomAttributes(typeof(DrawerAttribute), true);
     if (drawerAttributes.Length > 0)
     {
         PropertyDrawer drawer = PropertyDrawerDatabase.GetDrawerForAttribute(drawerAttributes[0].GetType());
         return(drawer);
     }
     else
     {
         return(null);
     }
 }
Example #2
0
 private void OnDisable()
 {
     PropertyDrawerDatabase.ClearCache();
 }