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); }
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)); } }
public static void RectScalingCap(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.dragdot, RectHandles.s_Styles.dragdotactive); }