Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMaySupportVFX.cs 453B

12345678910111213
  1. namespace UnityEditor.ShaderGraph
  2. {
  3. public interface IMaySupportVFX
  4. {
  5. bool SupportsVFX();
  6. bool CanSupportVFX();
  7. }
  8. static class MaySupportVFXExtensions
  9. {
  10. public static bool SupportsVFX(this Target target) => target is IMaySupportVFX vfxTarget && vfxTarget.SupportsVFX();
  11. public static bool CanSupportVFX(this Target target) => target is IMaySupportVFX vfxTarget && vfxTarget.CanSupportVFX();
  12. }
  13. }