Singularity/Library/PackageCache/com.unity.shadergraph@12.1.11/Editor/Data/Interfaces/IMaySupportVFX.cs

24 lines
599 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
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();
}
}
}