Class ParticleSphereShapeOptions

Information describing a ParticleEmitterSphereShape.

Hierarchy

  • FrameworkObject
    • ParticleSphereShapeOptions

Constructors

Properties

Accessors

Methods

Events

Constructors

  • Parameters

    • Optionalradius: number
    • Optionalthickness: number
    • OptionalisInternalConstructor: boolean

    Returns ParticleSphereShapeOptions

Accessors

  • get radius(): number
  • Radius of the sphere.

    Returns number

  • set radius(value): void
  • Parameters

    • value: number

    Returns void

  • get thickness(): number
  • Proportion of the volume that can emit particles. Thickness of 0 results in particles being emitted only from the edge of the volume, while thickness of 1 results in particles being emitted from the entire volume. In-between values will use a part of the volume.

    Returns number

  • set thickness(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.