Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Particle System Trigger Sub Emitter#

Effects / Particle System / Particle System Trigger Sub Emitter SubEmitterIndex

Description#

Executes the Trigger Sub Emitter method on the Particle System component

Parameters#

Name Description
Sub Emitter Index

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 Trigger Sub Emitter")]
    [Category("Effects/Particle System/Trigger Sub Emitter", "SubEmitterIndex")]
    [Description("Executes the Trigger Sub Emitter method on the Particle System component")]

    [Image(typeof(IconParticleSystem), ColorTheme.Type.Blue)]
    [Keywords("Effect")]

    [Parameter("Sub Emitter Index")]

    [Serializable]
    public class GenInstructionParticleSystem_TriggerSubEmitter_1_IntSubEmitterIndex : Instruction
    {
        [SerializeField] private GetGameObject m_ParticleSystem = new GetGameObject(
            new GenTypeGameObject_ParticleSystem()
        );

        [SerializeField] private GetInteger m_SubEmitterIndex = new GetInteger();

        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Trigger Sub Emitter");
            return $"{this.m_ParticleSystem} {method} ({this.m_SubEmitterIndex})";
        }

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

            component.TriggerSubEmitter(
                (int) this.m_SubEmitterIndex.Get(args)
            );

            return Done;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.