I was adding some particles to my Unity prototype and found myself unable to do any scaling of the particles using the game object’s transform. I wanted to programmatically scale them through the parent, but it seemed like the particle system was not affected by transform scale. After some digging, it turns out that there is a field Scaling Mode which can be set to Hierarchy. This will allow you to scale the particle via transform, and it will inherit from the parent as well.

So how do you scale the particle through transform?

From the Unity docs, the three options are hierarchy, local, and shape, with the default being local.

Hierarchy: Scale the particle system using the entire transform hierarchy.
Local: Scale the particle system using only its own transform scale. (Ignores parent scale).
Shape: Only apply transform scale to the shape component, which controls where particles are spawned, but does not affect their size or movement.

Unity Particle System Scaling Mode

Just a small tip but was helpful for me nonetheless. Hopefully this helps you get scaling of your Unity particles right as well!

Interested in more Unity tutorials? Check them out here.

Recommended Posts

2
Leave a Reply

avatar
1 Comment threads
1 Thread replies
2 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
JonathanEnrique Ismael Flores Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Enrique Ismael Flores
Guest
Enrique Ismael Flores

Hi!! I have the same problem.. I want to scale a particle system from code but, do your can share with me a example how to access and change the scale with this parameter?