static void DrawSelectedGizmo(PlanarReflectionProbe probe, GizmoType gizmoType) { var e = (PlanarReflectionProbeEditor)GetEditorFor(probe); if (e == null) { return; } var mat = Matrix4x4.TRS(probe.transform.position, probe.transform.rotation, Vector3.one); InfluenceVolumeUI.DrawGizmos( probe.influenceVolume, mat, InfluenceVolumeUI.HandleType.None, InfluenceVolumeUI.HandleType.Base | InfluenceVolumeUI.HandleType.Influence ); if (e.showChromeGizmo) { DrawCapturePositionGizmo(probe); } }
static void DrawSelectedGizmo(ReflectionProbe reflectionProbe, GizmoType gizmoType) { var e = (HDReflectionProbeEditor)GetEditorFor(reflectionProbe); if (e == null) { return; } var mat = Matrix4x4.TRS(reflectionProbe.transform.position, reflectionProbe.transform.rotation, Vector3.one); var hdprobe = reflectionProbe.GetComponent <HDAdditionalReflectionData>(); InfluenceVolumeUI.DrawGizmos( hdprobe.influenceVolume, mat, InfluenceVolumeUI.HandleType.None, InfluenceVolumeUI.HandleType.Base | InfluenceVolumeUI.HandleType.Influence ); if (e.showChromeGizmo) { Gizmos_CapturePoint(reflectionProbe); } }