Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. }