1、1Particle Systems粒子系统Note: This is the documentation for the new particle system (Shuriken). For documentation on the legacy particle system go to Legacy Particle System.注意:这是文件为新的粒子系统(手里剑 )。为传统的粒子系统文件转到新的粒子系统Particle System (Shuriken)粒子系统(手里剑)Particle Systems in Unity are used to make clouds of smo
2、ke, steam, fire and other atmospheric effects. 粒子系统在统一被过去常常使烟雾的云,蒸汽,火,其他大气效果。You can create a new particle system by creating a Particle System GameObject (menu GameObject - Create Other - Particle System) or by creating an empty GameObject and adding the ParticleSystem component to it (in Component
3、-Effects) 2The Particle System Inspector (Shuriken)粒子系统检查员(手里剑)The Particle System Inspector shows one particle system at a time (the currently selected one), and it looks like this: 粒子系统检查员节目一个粒子系统一次(目前选择一) ,它面貌这般 :Individual particle systems can take on various complex behaviors by using Modules.个
4、人粒子系统能与各个的复合行为借用模块。They can also be extended by being grouped together into Particle Effects. 他们可以也被延长由被一起聚集到粒子效果。If you press the button Open Editor ., this will open up the Extended Particle Editor, that shows all of the particle systems under the same root in the scene tree. For more information
5、on particle system grouping, please see the section on Particle Effects. 如果你点击按钮 Open Editor。这会扩出粒子编辑器,显示所有的粒子系统在同一根在场景树,而更多信息关于粒子系统编,请参阅对颗粒的影响3Scene View Editing场景编辑When creating and editing Particle Systems, you either work with the Inspector or the extended Particle Editor, and your changes are r
6、eflected in the SceneView. The scene view has a Preview Panel, where playback of the currently selected Particle Effect can be controlled in Edit Mode, with actions like play, pause, stop and scrubbing playback time当创建和编辑的粒子系统,你可以工作的督察或扩展粒子编辑器,和你的变化反映在 sceneview。现场观点有一个预览面板,在播放当前选定的粒子效果可控制在编辑模式,行动就像
7、玩,暂停,停止和擦洗的播放时间Scrubbing play back time can be performed by dragging on the label Playback Time. All Playback controls have shortcut keys which can be customized in the Preferences window洗涤播放时间可通过拖动标签上的播放时间。所有播放控件有捷径键可定制的选项窗口Particle System Curve Editor粒子系统编辑器MinMax curves曲线大小Many of the properties
8、in the particle system modules describe a change of a value with time. That change is described via MinMax Curves. These time-animated properties (for example size and speed), will have a pull down menu on the right hand side, where you can choose between:4许多性能的粒子系统模块描述的值的变化与时间。这种变化是通过最小曲线描述。这些 time
9、-animated 属性(例如,大小和速度),将有一个下拉菜单上的右手边,在这里你可以选择:Constant: The value of the property will not change with time, and will not be displayed in the Curve Editor常数:属性值不随时间变化,并没有显示在曲线编辑器Random between constants: The value of the property will be selected at random between the two constants随机之间的常数:价值的财产将被随机选
10、择,两国之间的常数Curve: The value of the property will change with time based on the curve specified in the Curve Editor曲线:财产的价值会随时间变化的曲线的基础上指定的曲线编辑器A property animated with a Curve 动画曲线的性质Random between curves: A curve will be generated at random between the min and the max curve, and the value of the prop
11、erty will change in time based on the generated curve随机之间的曲线:一个曲线会产生随机之间的最小和最大曲线,财产的价值会随时间变化的基础上产生的曲线A property animated as Random Between Two Curves一个物业动画作为随机曲线之间5In the Curve Editor, the x-axis spans time between 0 and the value specified by the Duration property, and the y-axis represents the val
12、ue of the animated property at each point in time. The range of the y-axis can be adjusted in the number field in the upper right corner of the Curve Editor. The Curve Editor currently displays all of the curves for a particle system in the same window.在曲线编辑器,X 轴跨越时间和 0 之间的值指定的时间属性,和 Y 轴代表的价值的动画属性在每
13、个时间点。一系列的 Y 轴可以调整中的一些领域在右上角的曲线编辑器。曲线编辑当前显示所有的曲线的一个粒子系统在同一窗口。Multiple curves in the same curve editor多曲线相同的曲线编辑器Note that the “-“ in the bottom-right corner will remove the currently selected curve, while the “+“ will optimize it (that is make it into a parametrized curve with at most 3 keys).请注意, “-
14、”在右下角将删除当前选定的曲线,而“+”优化(这是使它成为一个参数曲线最多3 键) 。6For animating properties that describe vectors in 3D space, we use the TripleMinMax Curves, which are simply curves for the x-,y-, and z- dimensions side by side, and it looks like this: 为动画属性描述三维空间中的向量,我们使用 tripleminmax 曲线,这是简单的曲线的 X 线,-,和尺寸并排,和它看起来像这样:Ma
15、naging many curves in the curve editor管理许多曲线在曲线编辑器To avoid cluttering in the Curve Editor, it is possible to toggle curves on and off, by clicking on them in the inspector. The Particle System Curve Editor can also be detached from the Inspector by right-clicking on the Particle System Curves title
16、bar, after which you should see something like this:避免复杂的曲线编辑器,它可以切换曲线和关闭,通过点击他们的督察。的粒子系统编辑器也可以脱离督察通过右键点击标题栏的粒子系统的曲线,之后你应该看到这样的事情:A detached Curve Editor that can be docked like any other window分离曲线编辑器,可以停靠像任何其他窗口For more information on working with curves, take a look at the Curve Editor documentat
17、ion上的更多信息,工作曲线,看一看曲线编辑文件Colors and Gradients in the Particle System (Shuriken)颜色和梯度的粒子系统(手里剑)7For properties that deal with color, the Particle System makes use of the Color and Gradient Editor. It works in a similar way to the Curve Editor.属性的颜色处理,粒子系统使用的颜色和梯度编辑。它以同样的方式曲线编辑器。The color-based propert
18、ies will have a pull down menu on the right hand side, where you can choose between:基于颜色的性能将有一个下拉菜单上的右手边,你可以选择:Color: The color will be the same throughout time (see Color Picker)颜色:颜色会在同一时间(见颜色选择器)Gradient: The gradient (RGBA) will vary throughout time, edited in the Gradient Editor梯度:梯度(亮度)将有所不同,在
19、渐变编辑器编辑Random Between Two Colors: The color varies with time and is chosen at random between two values specified in the Color Picker随机之间的颜色:颜色随时间和随机选择 2 值中指定的颜色选择器Random Between Two Gradients: The gradient (RGBA) varies with time and is chosen at random between two values specified Gradient Editor随
20、机双梯度:梯度(亮度)随时间和随机选择之间的值指定的渐变编辑器Introduction to Particle System Modules (Shuriken)介绍了粒子系统模块(手里剑)A Particle System consists of a predefined set of modules that can be enabled and disabled. These modules describe the behavior of particles in an individual particle system.一个粒子系统由一组预定义的模块,可以启用和禁用。这些模块描述粒
21、子的行为在个别粒子系统。8Initially only a few modules are enabled. Addding or removing modules changes the behavior of the particle system. You can add new modules by pressing the (+) sign in the top-right corner of the Particle System Inspector. This pops up a selection menu, where you can choose the module yo
22、u want to enable.最初只有几个模块能够。加或删除模块化行为的粒子系统。您可以添加新的模块按(+)在右上角的粒子系统。这弹出选择菜单,在那里你可以选择你想使模块。An alternative way to work with modules is to select “Show All Modules“, at which point all of the modules will show up in the inspector.另一种方式与模块是选择“显示所有模块 ”,此时所有的模块将显示在检查员。9Then you can enable / disable modules
23、directly from the inspector by clicking the checkbox to the left.然后你可以启用/禁用模块直接从检查员由点击复选框的左侧。10Most of the properties are controllable by curves (see Curve Editor). Color properties are controlled via gradients which define an animation for color (see Color Editor).大多数性能可控的曲线(见曲线编辑器) 。颜色属性是通过控制梯度定义一个动画的颜色(见颜色编辑器) 。 、For details on individual modules and their properties, see Particle System Modules详细介绍各模块和它们的属性,看到粒子系统模块