// ============================================================================================================ // Editor Auxiliary... // ============================================================================================================ #if UNITY_EDITOR public void OnDrawGizmosSelected() { if (useBaseRect) { RadiacUtility.DrawRectangleGizmos(tr.rect.Transform(tr.position), tr.position.z + float.Epsilon, Color.red); } if (Selection.activeGameObject != transform.gameObject) { return; } // Draw masks which limit this panel's reaction. foreach (var i in this.transform.FindComponentsInParents <RadiacMaskArea>()) { bool takeAccount = false; takeAccount |= i.maskType == RadiacMaskArea.MaskType.AllChildren; takeAccount |= i.maskType == RadiacMaskArea.MaskType.DirectChildrenOnly && i.transform == this.transform.parent; if (takeAccount) { i.CustomDrawGizmos(); } } }
public void OnDrawGizmosSelected() => RadiacUtility.DrawRectangleGizmos(rect, tr.position.z + float.Epsilon, Color.red);
public override void CustomDrawGizmos() { RadiacUtility.DrawRectangleGizmos(rect, tr.position.z + float.Epsilon, Color.blue); }