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

# Visual Effect Stop

[Effects](../index.md) / [Visual Effect](index.md) / **Visual Effect Stop**

## Description

Executes the Stop 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
{
    [Title("Visual Effect Stop")]
    [Category("Effects/Visual Effect/Stop")]
    [Description("Executes the Stop method on the Visual Effect component")]

    [Image(typeof(IconVisualEffect), ColorTheme.Type.Yellow)]
    [Keywords("Effect")]

    [Serializable]
    public class GenInstructionVisualEffect_Stop_0 : Instruction
    {
        [SerializeField] private GetGameObject m_VisualEffect = new GetGameObject(
            new GenTypeGameObject_VisualEffect()
        );

        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Stop");
            return $"{this.m_VisualEffect} {method}";
        }

        protected override Awaitable Run(Args args)
        {
            VisualEffect component = this.m_VisualEffect.Get<VisualEffect>(args);
            if (component == null) return Done;

            component.Stop();

            return Done;
        }
    }
}
```

