UnityEditor.LightProbeProxyVolumeEditor.RenderBoxGizmo C# (CSharp) Method

RenderBoxGizmo() private method

private RenderBoxGizmo ( LightProbeProxyVolume probeProxyVolume, GizmoType gizmoType ) : void
probeProxyVolume UnityEngine.LightProbeProxyVolume
gizmoType GizmoType
return void
        private static void RenderBoxGizmo(LightProbeProxyVolume probeProxyVolume, GizmoType gizmoType)
        {
            if ((s_LastInteractedEditor != null) && (s_LastInteractedEditor.sceneViewEditing && (EditMode.editMode == EditMode.SceneViewEditMode.LightProbeProxyVolumeBox)))
            {
                Color color = Gizmos.color;
                Gizmos.color = kGizmoLightProbeProxyVolumeColor;
                Vector3 originCustom = probeProxyVolume.originCustom;
                Matrix4x4 matrix = Gizmos.matrix;
                Gizmos.matrix = probeProxyVolume.transform.localToWorldMatrix;
                Gizmos.DrawCube(originCustom, (Vector3) (-1f * probeProxyVolume.sizeCustom));
                Gizmos.matrix = matrix;
                Gizmos.color = color;
            }
        }