Particle System Is Alive#
Effects / Particle System / Particle System Is Alive WithChildren
Can Read
Cannot Write
Description#
Returns the execution of Is Alive method on the Particle System component
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
{
[Get]
[Title("Particle System Is Alive")]
[Category("Effects/Particle System/Is Alive", "WithChildren")]
[Description("Returns the execution of Is Alive method on the Particle System component")]
[Image(typeof(IconParticleSystem), ColorTheme.Type.Blue)]
[Keywords("Effect")]
[Serializable]
public class GenTypeBool_ParticleSystem_IsAlive_1_BoolWithChildren : TypeBool
{
[SerializeField] private GetGameObject m_ParticleSystem = new GetGameObject(
new GenTypeGameObject_ParticleSystem()
);
[SerializeField] private GetBool m_WithChildren = new GetBool();
public override bool Get(Args args)
{
ParticleSystem component = this.m_ParticleSystem.Get<ParticleSystem>(args);
if (component == null) return default;
bool value = (bool) component.IsAlive(
(bool) this.m_WithChildren.Get(args)
);
return value;
}
public override string ToString()
{
return $"{this.m_ParticleSystem} Is Alive ({this.m_WithChildren})";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}