# How to set overall opacity for a particle system?

**URL:** <https://forums.unrealengine.com/t/how-to-set-overall-opacity-for-a-particle-system/295454>\
**Category:** Rendering\
**Tags:** particle-system, opacity, unreal-engine, fade, question\
**Created:** [October 7, 2014, 2:38am UTC](https://forums.unrealengine.com/t/how-to-set-overall-opacity-for-a-particle-system/295454 "2014-10-07T02:38:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [October 7, 2014, 2:38am UTC](https://forums.unrealengine.com/t/how-to-set-overall-opacity-for-a-particle-system/295454/1 "2014-10-07T02:38:19Z")

</div>

Hi There,

I have a particle system that fades particles in and out during their lifetime using the particle editor. I would like to scale the overall opacity of the system, so that I can fade it in and out as a whole.

Right now I’ve done this (I think, still WIP and untested) by adding a dynamic material instance with an extra opacity multiplier. However this approach seems overly heavy as it operates on a per pixel level and there is already an opacity blend in there that it would be nice to leverage.

Is there a way I can do this without the material instance and extra per pixel operation?

---

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [October 7, 2014, 1:43pm UTC](https://forums.unrealengine.com/t/how-to-set-overall-opacity-for-a-particle-system/295454/2 "2014-10-07T13:43:36Z")

</div>

Looks like there’s an alpha scale parameter… [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Particle_Instance_Parameters_Tutorial)

I’ll try that now.

The MID approach seems like it should work and is useful for more custom effects but while I can set the opacity value in the material instance editor and have it work from C++ it doesn’t seem to have any effect:

```
		MyParticleMID->SetScalarParameterValue(TEXT("Opacity"), 0.2f);

```

---

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [October 7, 2014, 2:29pm UTC](https://forums.unrealengine.com/t/how-to-set-overall-opacity-for-a-particle-system/295454/3 "2014-10-07T14:29:15Z")

</div>

Following the instructions in [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Particle_Instance_Parameters_Tutorial) allows me to set alpha via C++, am still interested in what I’m missing with the MID.

```
	MyParticleComponent->SetFloatParameter("AlphaScale", 0.5f);

```

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [February 3, 2022, 2:01am UTC](https://forums.unrealengine.com/t/how-to-set-overall-opacity-for-a-particle-system/295454/4 "2022-02-03T02:01:30Z")

</div>

If you select the Required node of a particle and make an instance of the material being used then add in a multiply from the alpha and connect the alpha to A and a Scalar Parameter to B and name the scalar Opacity, you can change the particle to use your material instance and then control the opacity however you like (real-time or not) through the material instance.
