English 中文(简体)
Unity - The Particle System
  • 时间:2024-11-05

Unity - The Particle System


Previous Page Next Page  

Particle Systems help in generating a large number of particles with small pfespans in an efficient manner. These systems undergo a separate rendering process; they can instantiate particles even when there are hundreds or thousands of objects.

Now, particles are an ambiguous term in the Particle System; a particle is any inspanidual texture, material instance or entity that is generated by the particle system. These are not necessarily dots floating around in space (although they can be!), and they can be used for a ton of different scenarios.

Particle System

A GameObject manages a Particle System with the Particle System component attached; particle systems do not require any Assets to set up, although they may require different materials depending on the effect you want.

To create a particle system, either add the component Particle System through the Add Component setting, or go to the Hierarchy, and select Create → Effects → Particle System. This will generate a new GameObject with the particle system attached.

Create Particle System

If you look at the properties of the Particle System, you will see that comprises many modules. By default, only three modules are active; the Emission, Shape and the Renderer. Other modules can be activated by cpcking on the small circle next to their name.

properties of Particle System

Particle system Properties

To the right of some values, you may notice a small black arrow. This allows you to gain more control over the values of each inspanidual particle. For example, you can set the Start Size to Random between Two Constants to tell the Particle System to render different sized, random particles pke a water hose.

Water Hose Advertisements