using Newtonsoft.Json.Linq; using UnityEngine; #if UNITY_VFX_GRAPH using UnityEngine.VFX; #endif namespace MCPForUnity.Editor.Tools.Vfx { /// /// Common utilities for VFX Graph operations. /// internal static class VfxGraphCommon { #if UNITY_VFX_GRAPH /// /// Finds a VisualEffect component on the target GameObject. /// public static VisualEffect FindVisualEffect(JObject @params) { if (@params == null) return null; GameObject go = ManageVfxCommon.FindTargetGameObject(@params); return go?.GetComponent(); } #endif } }