# Dynamic Material Opactiy Parameter not working (but only for certain colors)

**URL:** <https://forums.unrealengine.com/t/dynamic-material-opactiy-parameter-not-working-but-only-for-certain-colors/960473>\
**Category:** Programming & Scripting\
**Tags:** parameters, instance, translucent, opacity, unreal-engine, color, transparency, dynamic, meshes\
**Created:** [April 14, 2023, 4:13pm UTC](https://forums.unrealengine.com/t/dynamic-material-opactiy-parameter-not-working-but-only-for-certain-colors/960473 "2023-04-14T16:13:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maderschaden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maderschaden](https://forums.unrealengine.com/u/Maderschaden)\
**Post date:** [April 14, 2023, 4:13pm UTC](https://forums.unrealengine.com/t/dynamic-material-opactiy-parameter-not-working-but-only-for-certain-colors/960473/1 "2023-04-14T16:13:49Z")

</div>

Hi everyone,

I have this very basic material setup with two parameters, color and opacity.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/b/1bb36489e78928c051b86ff10e3e3c28e65c9f0e.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/c/76c6dc08d8d3a0a0df04b6e615cba49a609db3ed.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/3/703be575f3b364aa8ffd28eaa743053b4644e984.png)

Now if I set these parameters in a dynamic material, the opacity works, but only when the color “is actually a color” (which means non white):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/2/fc25e249530914aa6bdd1414ed3c6457e95c5564.png)

But when I set the color directly to white (rgb: 1,1,1) the opactiy parameter suddenly stops working and my material is completely non-transparent…

Any idea why that might be happening?
