DrawImageBasedCap() private static method

private static DrawImageBasedCap ( int controlID, Vector3 position, Quaternion rotation, float size, GUIStyle normal, GUIStyle active ) : void
controlID int
position Vector3
rotation UnityEngine.Quaternion
size float
normal UnityEngine.GUIStyle
active UnityEngine.GUIStyle
return void
示例#1
0
 public static void PivotCap(int controlID, Vector3 position, Quaternion rotation, float size)
 {
     if (RectHandles.s_Styles == null)
     {
         RectHandles.s_Styles = new RectHandles.Styles();
     }
     RectHandles.DrawImageBasedCap(controlID, position, rotation, size, RectHandles.s_Styles.pivotdot, RectHandles.s_Styles.pivotdotactive);
 }
示例#2
0
 public static void PivotHandleCap(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)
 {
     if (RectHandles.s_Styles == null)
     {
         RectHandles.s_Styles = new RectHandles.Styles();
     }
     if (eventType != EventType.Layout)
     {
         if (eventType == EventType.Repaint)
         {
             RectHandles.DrawImageBasedCap(controlID, position, rotation, size, RectHandles.s_Styles.pivotdot, RectHandles.s_Styles.pivotdotactive);
         }
     }
     else
     {
         HandleUtility.AddControl(controlID, HandleUtility.DistanceToCircle(position, size * 0.5f));
     }
 }