WuhuIslandTesting/Library/PackageCache/com.unity.shadergraph@8148.12.1-8/Editor/Data/Interfaces/IMaySupportVFX.cs
2025-01-07 02:06:59 +01:00

23 lines
599 B
C#

namespace UnityEditor.ShaderGraph
{
public interface IMaySupportVFX
{
bool SupportsVFX();
bool CanSupportVFX();
}
static class MaySupportVFXExtensions
{
public static bool SupportsVFX(this Target target)
{
var vfxTarget = target as IMaySupportVFX;
return vfxTarget != null && vfxTarget.SupportsVFX();
}
public static bool CanSupportVFX(this Target target)
{
var vfxTarget = target as IMaySupportVFX;
return vfxTarget != null && vfxTarget.CanSupportVFX();
}
}
}