SelectLightProbe(int)
Selects a light probe in the Light Probe edit tool.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Rendering
- Assembly: UnityEditor.CoreModule
public static void SelectLightProbe(int lightProbeIndex)
Parameters
The light probe to select.
Remarks
The index matches those in the Probe Positions field on the LightProbeGroup component. If no Probes are being edited, this method doesn't do anything.
Additional Resources: _probePositions.
Examples
using UnityEditor;using UnityEditor.Rendering;public static class ProbeSelectionDemo{ [MenuItem("Example/Select First Probe")] private static void SelectFirstProbe() { // If light probes are not currently being edited, or the probe is already selected, this does nothing. LightProbeGroupEditorUtility.SelectLightProbe(0); }}