using System.Linq; using UnityEditor.VFX.UI; namespace UnityEditor.VFX.HDRP { static class VFXHDRPSettingsUtility { public static void RefreshVfxErrorsIfNeeded() { foreach (var vfxWindow in VFXViewWindow.GetAllWindows()) { if (vfxWindow != null) { var vfxGraph = vfxWindow.graphView.controller.graph; foreach (var output in vfxGraph.children.OfType()) output.RefreshErrors(); } } } } }