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

# Particle System Is Emitting

[Effects](../index.md) / [Particle System](index.md) / **Particle System Is Emitting**

## Description

Compares the Is Emitting property of Particle System component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Particle System |  |

## 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;

namespace VisualScript.Runtime
{
    [Title("Particle System Is Emitting")]
    [Category("Effects/Particle System/Is Emitting")]
    [Description("Compares the Is Emitting property of Particle System component to another value")]
    
    [Image(typeof(IconParticleSystem), ColorTheme.Type.Blue)]
    [Keywords("Effect")]
    
    [Parameter("Particle System")]
    
    [Serializable]
    public class GenConditionBool_ParticleSystem_CheckIsEmitting : Condition
    {
        [SerializeField] private GetGameObject m_ParticleSystem = new GetGameObject(
            new GenTypeGameObject_ParticleSystem()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Is Emitting");
            return $"{this.m_ParticleSystem} {member}";
        }
        
        protected override bool Run(Args args)
        {
            ParticleSystem component = this.m_ParticleSystem.Get<ParticleSystem>(args);
            if (component == null) return false;
            
            return component.isEmitting;
        }
    }
}


```

