# How to set opacity of mesh for different pawn?

**URL:** <https://forums.unrealengine.com/t/how-to-set-opacity-of-mesh-for-different-pawn/410736>\
**Category:** Blueprint\
**Tags:** collectables, unreal-engine, editor, UE4, Blueprint, question\
**Created:** [November 27, 2017, 6:51pm UTC](https://forums.unrealengine.com/t/how-to-set-opacity-of-mesh-for-different-pawn/410736 "2017-11-27T18:51:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![misterrider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@misterrider](https://forums.unrealengine.com/u/misterrider)\
**Post date:** [November 27, 2017, 6:51pm UTC](https://forums.unrealengine.com/t/how-to-set-opacity-of-mesh-for-different-pawn/410736/1 "2017-11-27T18:51:37Z")

</div>

Hi so my question could sound weird but here is the thing :  
I have 3 differents pawn ( so 3 playable characters ) and some collectibles , we can say :  
blue collectibles for pawn 1  
red collectibles for pawn 2  
yellow collectibles for pawn 3

So what I want to do is for example when I’m playing with pawn 1 , the red and yellow collectibles need to be with a little opacity ( like in donkey kong 64 , when you play DK the other bananas are a bit invisible )

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 27, 2017, 6:57pm UTC](https://forums.unrealengine.com/t/how-to-set-opacity-of-mesh-for-different-pawn/410736/2 "2017-11-27T18:57:52Z")

</div>

Create a material with a vector parameter. When you create collectables, create a dynamic material instance and assign it to mesh. Feed the DMI parameters with the appropriate colour and desired alpha.
