Vixen
02b45cc4
csharp
public readonly record struct VfxSpawner

One reason particles appear.

Read the guide page for this →

Fields and properties (5)

  • public VfxSpawnerKind Kind

    Whether it bursts or trickles.

  • public float Rate

    For Rate: particles per second.

  • public int Count

    For Burst: how many each time.

  • public float Time

    For Burst: when the first one is, in seconds.

  • public float Interval

    For Burst: how often it repeats. Zero or less bursts once.

Methods (4)

  • public VfxSpawner(VfxSpawnerKind Kind, float Rate = 0, int Count = 0, float Time = 0, float Interval = 0)

    One reason particles appear.

  • public static VfxSpawner AtRate(float perSecond)

    A steady stream.

  • public static VfxSpawner Burst(int count, float time = 0)

    A one-off burst.

  • public static VfxSpawner Repeating(int count, float interval, float time = 0)

    A burst that repeats.

Used by (27)

  • SweepBenchmarksVixen.Benchmarks.Vfx
  • ParticleLightTestsVixen.Rendering.Tests
  • ParticleRenderFeatureTestsVixen.Rendering.Tests
  • ParticleSpriteDeviceTestsVixen.Graphics.Golden.Tests
  • SourceVixen.Rendering.Tests
  • VfxAgreementTestsVixen.Vfx.Gpu.Tests
  • VfxCollisionTestsVixen.Vfx.Tests
  • VfxCompiledGraphVixen.Vfx
  • VfxCompiledGraphTestsVixen.Vfx.Tests
  • VfxCustomAttributeTestsVixen.Vfx.Tests
  • VfxEffectContentVixen.Rendering
  • VfxEffectContentTestsVixen.Rendering.Tests
  • VfxForceTestsVixen.Vfx.Tests
  • VfxGeometryTestsVixen.Vfx.Tests
  • VfxParallelTestsVixen.Vfx.Tests
  • VfxReapTestsVixen.Vfx.Gpu.Tests
  • VfxRibbonTestsVixen.Vfx.Tests
  • VfxShaderEmitterTestsVixen.Vfx.Tests
  • VfxShaderUniformTestsVixen.Vfx.Tests
  • VfxSortTestsVixen.Vfx.Gpu.Tests
  • VfxSpawnerRowVixen.Rendering
  • VfxSubEmitterTestsVixen.Vfx.Tests
  • VfxSystemVixen.Vfx
  • VfxSystemTestsVixen.Vfx.Tests
  • BurstNodeVixen.Editor.VfxGraph
  • RateNodeVixen.Editor.VfxGraph
  • VfxGraphBuilderVixen.Editor.VfxGraph