|
|
|
|
|
|
[DrawGizmo(GizmoType.Selected)] |
|
|
|
static void DrawSelectedGizmo(ReflectionProbe reflectionProbe, GizmoType gizmoType) |
|
|
|
{ |
|
|
|
var e = GetEditorFor(reflectionProbe); |
|
|
|
if (e == null || !e.sceneViewEditing) |
|
|
|
return; |
|
|
|
|
|
|
|
var reflectionData = reflectionProbe.GetComponent<HDAdditionalReflectionData>(); |
|
|
|
|
|
|
|
Gizmos_Influence(reflectionProbe, reflectionData, null, false); |
|
|
|
|
|
|
[DrawGizmo(GizmoType.NonSelected)] |
|
|
|
static void DrawNonSelectedGizmo(ReflectionProbe reflectionProbe, GizmoType gizmoType) |
|
|
|
{ |
|
|
|
var e = GetEditorFor(reflectionProbe); |
|
|
|
if (e == null || !e.sceneViewEditing) |
|
|
|
return; |
|
|
|
|
|
|
|
var reflectionData = reflectionProbe.GetComponent<HDAdditionalReflectionData>(); |
|
|
|
if (reflectionData != null) |
|
|
|
HDReflectionProbeEditorUtility.ChangeVisibility(reflectionProbe, false); |
|
|
|