Version: 2020.1
Módulo de datos personalizados
Particle System Force Field

Renderer module

The Renderer module’s settings determine how a particle’s image or Mesh is transformed, shaded and overdrawn by other particles.

Propiedades

Propiedad: Función:
Render Mode How the rendered image is produced from the graphic image (or Mesh). See Details, below, for more information.
    Billboard The particles render as billboards and face the direction you specify in Render Alignment.
    Stretched Billboard The particles face the Camera but with various scaling applied (see below).
        Camera Scale Stretches particles according to Camera movement. Set this to 0 to disable Camera movement stretching.
        Velocity Scale Stretches particles proportionally to their speed. Set this to 0 to disable stretching based on speed.
        Length Scale Stretches particles proportionally to their current size along the direction of their velocity. Setting this to 0 makes the particles disappear, having effectively 0 length.
        Freeform Stretching Indicates whether particles should use freeform stretching. With this stretching behavior, particles don’t get thin when you view them head-on.
        Rotate With Stretch Indicates whether to rotate particles based on the direction they stretch in. This is added on top of other particle rotation. This property only has an effect when you enable Freeform Stretching. If you disable Freeform Stretching, particles always rotate based on the direction they stretch in, even if Rotate With Stretch is disabled.
    Horizontal Billboard The particle plane is parallel to the XZ “floor” plane.
    Vertical Billboard The particle is upright on the world Y-axis, but turns to face the Camera.
    Mesh The particle is rendered from a 3D Mesh instead of a Texture.
    None This can be useful when using the Trails module, if you want to only render the trails and hide the default rendering.
Normal Direction Bias of lighting normals used for the particle graphics. A value of 1.0 points the normals at the Camera, while a value of 0.0 points them towards the center of the screen (Billboard modes only).
Material Material utilizado para renderizar las partículas.
Trail Material Material used to render particle trails. This option is only available when the Trails module is enabled.
Sort Mode The order in which particles are drawn (and therefore overlaid). The possible values are By Distance (from the Camera), Oldest in Front, and Youngest in Front. Each particle within a system will be sorted according to this setting.
Sorting Fudge Bias of particle system sort ordering. Lower values increase the relative chance that particle systems are drawn over other transparent GameObjects, including other particle systems. This setting only affects where an entire system appears in the scene - it does not perform sorting on individual particles within a system.
Min Particle Size The smallest particle size (regardless of other settings), expressed as a fraction of viewport size. Note that this setting is only applied when the Rendering Mode is set to Billboard.
Max Particle Size The largest particle size (regardless of other settings), expressed as a fraction of viewport size. Note that this setting is only applied when the Rendering Mode is set to Billboard.
Render Alignment Use the drop-down to choose which direction particle billboards face.
    View Particles face the Camera plane.
    World Particles are aligned with the world axes.
    Local Particles are aligned to the Transform component of their GameObject.
    Facing Particles face the direct position of the Camera GameObject.
    Velocity Particles face in the direction of their velocity.
Enable GPU Instancing Control whether the Particle System will be rendered using GPU Instancing. Requires using the Mesh Render Mode, and using a compatible shader. See Particle Mesh GPU Instancing for more details.
Flip Mirror a proportion of the particles across the specified axes. A higher value flips more particles.
Allow Roll Control whether camera-facing particles can rotate around the Z-axis of the camera. Disabling this can be particularly useful for VR applications, where HMD roll can give undesirable results for Particle Systems.
Pivot Modify the central pivot point for rotating particles. The value is a multiplier of the particle size.
Visualize Pivot Preview the particle pivot points in the Scene View.
Masking Set how the particles rendered by the Particle System behave when interacting with a Sprite Mask.
    No Masking The Particle System does not interact with any Sprite Masks in the Scene. This is the default option.
    Visible Inside Mask The particles are visible where the Sprite Mask overlays them, but not outside of it.
    Visible Outside Mask The particles are visible outside of the Sprite Mask, but not inside it. The Sprite Mask hides the sections of the particles it overlays.
Apply Active Color Space When rendering in Linear Color Space, the system converts particle colors from Gamma Space before uploading them to the GPU.
Custom Vertex Streams Configure which particle properties are available in the Vertex Shader of your Material. See Particle Vertex Streams for more details.
Cast Shadows If enabled, the particle system creates shadows when a shadow-casting Light shines on it.
    On Select On to enable shadows.
    Off Select Off to disable shadows.
    Two-Sided Select Two Sided to allow shadows to be cast from either side of the Mesh (meaning backface culling is not taken into account).
    Shadows Only Select Shadows Only to make it so that the shadows are visible, but the Mesh itself is not.
Shadow Bias Move the shadows along the direction of the light, in order to remove shadowing artifacts caused by approximating volumes with billboards.
Receive Shadows Dictates whether shadows can be cast onto particles. Only opaque materials can receive shadows.
Sorting Layer Name of the Renderer’s sorting layer.
Order in Layer This Renderer’s order within a sorting layer.
Light Probes Modo de interpolación de iluminación de Probe.
Reflection Probes If enabled and reflection probes are present in the Scene, a reflection texture is picked for this GameObject and set as a built-in Shader uniform variable.
Anchor Override A Transform used to determine the interpolation position when the Light Probe or Reflection Probe systems are used.

Detalles

The Render Mode lets you choose between several 2D Billboard graphic modes and Mesh mode. Using 3D Meshes gives particles extra authenticity when they represent solid GameObjects, such as rocks, and can also improve the sense of volume for clouds, fireballs and liquids. Meshes must be read/write enabled to work on the Particle System. If you assign them in the editor Unity handles this for you but if you want to assign different meshes at runtime you need to handle this setting yourself.

When 2D billboard graphics are used, the different options can be used for a variety of effects:

  1. Billboard mode is good for particles representing volumes that look much the same from any direction (such as clouds).

  2. Horizontal Billboard mode can be used when the particles cover the ground (such as target indicators and magic spell effects) or when they are flat objects that fly or float parallel to the ground (for example, shurikens).

  3. Vertical Billboard mode keeps each particle upright and perpendicular to the XZ plane, but allows it to rotate around its y-axis. This can be helpful when you are using an orthographic Camera and want particle sizes to stay consistent.

  4. Stretched Billboard mode accentuates the apparent speed of particles in a similar way to the “stretch and squash” techniques used by traditional animators. Note that in Stretched Billboard mode, particles are aligned to face the Camera and also aligned to their velocity. This alignment occurs regardless of the Velocity Scale value - even if Velocity Scale is set to 0, particles in this mode still align to the velocity.

The Normal Direction can be used to create spherical shading on the flat rectangular billboards. This can help create the illusion of 3D particles if you are using a Material that applies lighting to your particles. This setting is only used with the Billboard render modes.


  • 2018–10–16 Page published

  • GPU instancing added in Unity 2018.1

  • New particle system options added to Renderer module in 2018.3 NewIn20183

Módulo de datos personalizados
Particle System Force Field
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961