Пример #1
0
 ///Show the next attribute drawer in order, or the object drawer itself of no attribute drawer is left to show.
 public object MoveNextDrawer()
 {
     attributeIndex++;
     if (attributes != null && attributeIndex < attributes.Length)
     {
         var att    = attributes[attributeIndex];
         var drawer = PropertyDrawerFactory.GetAttributeDrawer(att);
         return(drawer.DrawGUI(this, content, instance, fieldInfo, context, att));
     }
     return(OnGUI(content, instance));
 }
Пример #2
0
 ///Show the next attribute drawer in order, or the object drawer itself of no attribute drawer is left to show.
 object IObjectDrawer.MoveNextDrawer()
 {
     attributeIndex++;
     if (attributes != null && attributeIndex < attributes.Length)
     {
         var currentDrawerAttribute = attributes[attributeIndex];
         var drawer = PropertyDrawerFactory.GetAttributeDrawer(currentDrawerAttribute);
         return(drawer.DrawGUI(this, content, instance, currentDrawerAttribute, info));
     }
     return(OnGUI(content, instance));
 }