mathe/Library/PackageCache/com.unity.shadergraph@14.0.8/Editor/Data/Interfaces/IMaySupportVFX.cs
2024-09-20 20:30:10 +02:00

24 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();
}
}
}