using UnityEngine; using UnityEditor; namespace LightingTools.LightProbesVolumes { public class RefreshLightProbesVolumes { [MenuItem("Lighting/Refresh lightprobes volumes")] static void Refresh() { var volumes = GameObject.FindObjectsOfType(); foreach (var volume in volumes) { volume.Populate(); } } } }