Particle System Is Stopped#
Effects / Particle System / Particle System Is Stopped
Description#
Compares the Is Stopped property of Particle System component to another value
Parameters#
| Name | Description |
|---|---|
| Particle System |
Code#
// <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 Stopped")]
[Category("Effects/Particle System/Is Stopped")]
[Description("Compares the Is Stopped property of Particle System component to another value")]
[Image(typeof(IconParticleSystem), ColorTheme.Type.Blue)]
[Keywords("Effect")]
[Parameter("Particle System")]
[Serializable]
public class GenConditionBool_ParticleSystem_CheckIsStopped : Condition
{
[SerializeField] private GetGameObject m_ParticleSystem = new GetGameObject(
new GenTypeGameObject_ParticleSystem()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Is Stopped");
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.isStopped;
}
}
}