static void DrawGizmo(MagicaPlaneCollider scr, GizmoType gizmoType) { bool selected = (gizmoType & GizmoType.Selected) != 0 || (ClothMonitorMenu.Monitor != null && ClothMonitorMenu.Monitor.UI.AlwaysClothShow); if (selected == false) { return; } DrawGizmo(scr, selected); }
public static void DrawGizmo(MagicaPlaneCollider scr, bool selected) { Gizmos.matrix = scr.transform.localToWorldMatrix; Gizmos.color = selected ? GizmoUtility.ColorCollider : GizmoUtility.ColorNonSelectedCollider; Vector3 size = new Vector3(1.0f, 0.0f, 1.0f); Gizmos.DrawWireCube(Vector3.zero, size); Gizmos.DrawLine(Vector3.zero, Vector3.up * 0.1f); Gizmos.matrix = Matrix4x4.identity; }
static void DrawGizmo(MagicaPlaneCollider scr, GizmoType gizmoType) { bool selected = (gizmoType & GizmoType.Selected) != 0; if (selected == false) { if (ClothMonitorMenu.Monitor == null) { return; } if (ClothMonitorMenu.Monitor.UI.AlwaysClothShow == false || ClothMonitorMenu.Monitor.UI.DrawClothCollider == false) { return; } selected = true; } DrawGizmo(scr, selected); }