Danil Iarosh 716f55c138
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Add player skin override and update game assets
- Добавлен компонент подмены спрайтов игрока перед началом игры.
- Обновлены сцена уровня, префабы, шейдеры, настройки импорта и данные призов.
- Зафиксирован embedded-пакет Unity MCP 9.6.8 и обновлены связанные файлы проекта.
2026-09-22 13:21:18 +03:00

30 lines
704 B
C#

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