Vixen
02b45cc4
csharp
public readonly record struct VfxSpawnerRow

One spawner, as a build writes it.

Read the guide page for this →

Remarks

VfxSpawner's content form. The runtime type is a positional record struct, which the serializer generator cannot emit for — it wants a parameterless constructor and init members, which is what every row in this file is. See VfxEffectContent for why the mirror is worth the duplication.

Fields and properties (5)

  • public VfxSpawnerKind Kind

    Whether it bursts or trickles.

  • public float Rate

    Particles a second, for a rate spawner.

  • public int Count

    How many each time, for a burst.

  • public float Time

    When the first burst is, in seconds.

  • public float Interval

    How often it repeats. Zero or less bursts once.

Methods (3)

  • public VfxSpawnerRow()

    An empty spawner, for the serializer.

  • public VfxSpawner ToSpawner()

    This row as the runtime spawner.

  • public static VfxSpawnerRow From(in VfxSpawner spawner)

    One runtime spawner as a row.

Used by (4)

  • TypeRegistrationVixen.Rendering
  • VfxEffectContentVixen.Rendering
  • Vixen_Rendering_Vfx_VfxEffectContentSerializerVixen.Rendering
  • Vixen_Rendering_Vfx_VfxSpawnerRowSerializerVixen.Rendering