Class ParticleBurst

Specifies a burst of particles that occurs at a certain time point.

Hierarchy

  • FrameworkObject
    • ParticleBurst

Constructors

Properties

Accessors

Methods

Events

Constructors

  • Returns ParticleBurst

  • Parameters

    • time: number
    • count: FloatDistribution
    • Optionalcycles: number
    • Optionalinterval: number
    • OptionalisInternalConstructor: boolean

    Returns ParticleBurst

Accessors

  • get cycles(): number
  • Determines how many times to trigger the burst. If 0 the burst will trigger infinitely. Use Interval to to control the time between each cycle.

    Returns number

  • set cycles(value): void
  • Parameters

    • value: number

    Returns void

  • get interval(): number
  • Controls how much time needs to pass before triggering another burst cycle, in seconds.

    Returns number

  • set interval(value): void
  • Parameters

    • value: number

    Returns void

  • get time(): number
  • Time at which to trigger the burst, in seconds.

    Returns number

  • set time(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • Marks the object as dirty.

    Parameters

    Returns void

  • Allows modifying this object multiple times in a row in a scope, without marking the object dirty immediately. Dirty flags are accumulated and the object is marked dirty at the end.

    Parameters

    • action: (() => void)

      The scope where the object is modified.

        • (): void
        • Returns void

    Returns void

Events

onDirty: Event<[dirtyFlags: EnumValue<ManagedSettingsDirtyFlag, number>], void>

Event that is triggered when a member changes.