You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
591 B

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<VFXDecalHDRPOutput>())
output.RefreshErrors();
}
}
}
}
}