设置发射器区域


描述

This action is used to set the region and shape of an emitter within a particle system. You supply the particle system ID that the emitter belongs to (as returned by the action Create Particle System) and then the actual emitter ID (as returned by the action Create Particle Emitter), and then give a shape for the emitter to take within the given bounding box values. The possible emitter shapes are: Emitter Shapes

To define your shapes, you give the coordinates for a "bounding box" into which the given shape will be placed (in the case of rectangle, ellipse and diamond shapes) or the first and second coordinates for the start and finish points (in the case of a line). All particles that are burst or streamed from the emitter will be created within the confines of the shape within this bounding box. You can also set the distribution of the particles with the option of:


动作语法:

Set Emitter Region Syntax


参数:

参数 描述
系统 The unique ID of the system the emitter belongs to
发射器 The unique ID of the emitter to set the shape of
形状 The particle shape that is to be used
分布 The distribution of particles within the given shape
The position of the left side of the shape bounding box (in pixels)
The position of the top of the shape bounding box (in pixels)
The position of the right side of the shape bounding box (in pixels)
The position of the bottom of the shape bounding box (in pixels)


例如:

Set Emitter Region Example
The above action block code will create a particle emitter, set it's region, and then set it to emit a stream of particles.