void DrawRigGizmo(Transform rig) { //Handles.DrawWireCube(Vector3.zero, Vector3.one); //Gizmos.DrawCube(rig.position, Vector3.one); // Handles.DrawWireCube(rig.position, Vector3.one); // return; if (rig.childCount > 0) { for (int i = 0, count = rig.childCount; i < count; ++i) { Transform child = rig.GetChild(i); HandlesUtils.DrawPyramid(rig.position, child.position, 1f); DrawRigGizmo(child); } } }