Esempio n. 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));
 }
Esempio n. 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));
 }