Exemplo n.º 1
0
 /// <summary>
 /// Draws a slot given a GraphGUI host and a Rect position.
 /// </summary>
 /// <param name="position"></param>
 /// <param name="host"></param>
 /// <param name="slot"></param>
 public static void Draw(Rect position, GraphGUI host, Slot slot)
 {
     if (slot.isInputSlot)
     {
         host.Slot(position, null, slot, false, true, false, EditorHelper.Styles.Input);
     }
     else if (slot.isOutputSlot)
     {
         host.Slot(position, null, slot, true, false, true, EditorHelper.Styles.Output);
     }
 }