private void DrawVolumeGizmos() { // Check draw toggle if (m_DrawVolumes == false) { return; } // Draw gizmos for all Volumes foreach (SerializableVolume volume in PortalPrepareUtil.FilterVolumeDataNoChildren(m_PortalData.volumes)) { PortalDebugUtil.DrawCube(volume.positionWS, volume.rotationWS, volume.scaleWS, PortalDebugColors.volume); } }
// -------------------------------------------------- // // GIZMOS // // -------------------------------------------------- // #if UNITY_EDITOR private void OnDrawGizmos() { Gizmos.DrawIcon(transform.position, "kTools/Portals/PortalVolume icon.png", true); PortalDebugUtil.DrawCube(transform.position, transform.rotation, transform.lossyScale, PortalDebugColors.volume); }