---
tags:
    - "Effect"
---

# Visual Effect Has Int

[Effects](../index.md) / [Visual Effect](index.md) / **Visual Effect Has Int** Name

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

Returns the execution of Has Int method on the Visual Effect component

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.VFX;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Visual Effect Has Int")]
    [Category("Effects/Visual Effect/Has Int", "Name")]
    [Description("Returns the execution of Has Int method on the Visual Effect component")]
    
    [Image(typeof(IconVisualEffect), ColorTheme.Type.Yellow)]
    [Keywords("Effect")]
    
    [Serializable]
    public class GenTypeBool_VisualEffect_HasInt_1_StringName : TypeBool
    {
        [SerializeField] private GetGameObject m_VisualEffect = new GetGameObject(
            new GenTypeGameObject_VisualEffect()
        );
        
        [SerializeField] private GetString m_Name = new GetString();
        
        public override bool Get(Args args)
        {
            VisualEffect component = this.m_VisualEffect.Get<VisualEffect>(args);
            if (component == null) return default;
            
            bool value = (bool) component.HasInt(
                (string) this.m_Name.Get(args)
            );
            
            return value;
        }
        
        public override string ToString()
        {
            return $"{this.m_VisualEffect} Has Int ({this.m_Name})";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}


```

