LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

ParticleSystem.SubEmittersModule.SetSubEmitterType

Switch to Manual
public void SetSubEmitterType(int index, ParticleSystemSubEmitterType type);

Parameters

indexThe index of the sub-emitter being modified.
typeThe new spawning type to assign to this sub-emitter.

Description

Set the type of the sub-emitter at the given index.