Collections.ObjectModel.ReadOnlyCollection_1 The indexes to the probes currently being selected.
Retrieves the currently selected probes, as indexes.
To modify the positions of the probes, use the indexes with the Probe Positions field on the LightProbeGroup component. This method returns an empty list if no Probes are being edited.
Additional resources: LightProbeGroup._probePositions.
using UnityEditor; using UnityEditor.Rendering; using UnityEngine;
public static class LogSelectedLightProbes { [MenuItem("Example/Log Selected Light Probes")] private static void LogProbes() { foreach (var probe in LightProbeGroupEditorUtility.GetSelectedLightProbes()) Debug.Log(probe); } }