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

# Visual Effect Has U Int

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

## Description

Compares the Has U Int method of Visual Effect component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Visual Effect |  |
| Name ID |  |

## 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
{
    [Title("Visual Effect Has U Int")]
    [Category("Effects/Visual Effect/Has U Int", "NameID")]
    [Description("Compares the Has U Int method of Visual Effect component to another value")]
    
    [Image(typeof(IconVisualEffect), ColorTheme.Type.Yellow)]
    [Keywords("Effect")]
    
    [Parameter("Visual Effect")]
    [Parameter("Name ID")]
    
    [Serializable]
    public class GenConditionBool_VisualEffect_CheckHasUInt_1_IntNameID : Condition
    {
        [SerializeField] private GetGameObject m_VisualEffect = new GetGameObject(
            new GenTypeGameObject_VisualEffect()
        );
        
        [SerializeField] private GetInteger m_NameID = new GetInteger();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Has U Int");
            string parameters = $"({this.m_NameID})";
            return $"{this.m_VisualEffect} {method}";
        }
        
        protected override bool Run(Args args)
        {
            VisualEffect component = this.m_VisualEffect.Get<VisualEffect>(args);
            if (component == null) return false;
            
            bool value = component.HasUInt(
                (int) this.m_NameID.Get(args)
            );
            
            return value;
        }
    }
}


```

