StellarXipher/Library/PackageCache/com.unity.shadergraph@d57efd43b1c1/Editor/Data/Interfaces/IMaySupportVFX.cs
2025-02-06 16:45:46 -05:00

14 lines
453 B
C#

namespace UnityEditor.ShaderGraph
{
public interface IMaySupportVFX
{
bool SupportsVFX();
bool CanSupportVFX();
}
static class MaySupportVFXExtensions
{
public static bool SupportsVFX(this Target target) => target is IMaySupportVFX vfxTarget && vfxTarget.SupportsVFX();
public static bool CanSupportVFX(this Target target) => target is IMaySupportVFX vfxTarget && vfxTarget.CanSupportVFX();
}
}