Hide
ParticlePlay

A button to play a particle system of the field value, or the one on the field value.

Unity allows play ParticleSystem in the editor, but only if you selected the target GameObject. It can only play one at a time.

This decorator allows you to play multiple ParticleSystem as long as you have the expected fields.

Parameters:

  • string groupBy = "" for error grouping.

  • Allow Multiple: No

Note: because of the limitation from Unity, it can NOT detect if a ParticleSystem is finished playing

[ParticlePlay] public ParticleSystem particle; // It also works if the field target has a particleSystem component [ParticlePlay, FieldType(typeof(ParticleSystem), false)] public GameObject particle2;