Particle System Stop#
Effects / Particle System / Particle System Stop WithChildren, StopBehavior
Description#
Executes the Stop method on the Particle System component
Parameters#
| Name | Description |
|---|---|
| With Children | |
| Stop Behavior |
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 Stop")]
[Category("Effects/Particle System/Stop", "WithChildren, StopBehavior")]
[Description("Executes the Stop method on the Particle System component")]
[Image(typeof(IconParticleSystem), ColorTheme.Type.Blue)]
[Keywords("Effect")]
[Parameter("With Children")]
[Parameter("Stop Behavior")]
[Serializable]
public class GenInstructionParticleSystem_Stop_2_BoolWithChildren_ParticleSystemStopBehaviorStopBehavior : Instruction
{
[SerializeField] private GetGameObject m_ParticleSystem = new GetGameObject(
new GenTypeGameObject_ParticleSystem()
);
[SerializeField] private GetBool m_WithChildren = new GetBool();
[SerializeField] private ParticleSystemStopBehavior m_StopBehavior = default;
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Stop");
return $"{this.m_ParticleSystem} {method} ({this.m_WithChildren}, {this.m_StopBehavior})";
}
protected override Awaitable Run(Args args)
{
ParticleSystem component = this.m_ParticleSystem.Get<ParticleSystem>(args);
if (component == null) return Done;
component.Stop(
(bool) this.m_WithChildren.Get(args),
this.m_StopBehavior
);
return Done;
}
}
}