ReferenceCustom effectsInterface
RectEmissionShape
A rectangular area that particles spawn from.
A filled rectangle that particles spawn from, with every point inside it equally likely.
Set width or height to 0 to emit particles from a line.
Properties
Section titled “Properties”centeroptionalVec2default{ x: 0, y: 0 }The center of the rectangle, in pixels from the origin.
heightnumberThe height of the rectangle, in pixels.
type"rect"widthnumberThe width of the rectangle, in pixels.