# Can't seem to change material if I Create Maerial Instance

**URL:** <https://forums.unrealengine.com/t/cant-seem-to-change-material-if-i-create-maerial-instance/473783>\
**Category:** Asset Creation\
**Tags:** instance, change, unreal-engine, question\
**Created:** [October 31, 2020, 1:14pm UTC](https://forums.unrealengine.com/t/cant-seem-to-change-material-if-i-create-maerial-instance/473783 "2020-10-31T13:14:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidaandras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vidaandras/32/878178_2.png) [@vidaandras](https://forums.unrealengine.com/u/vidaandras)\
**Post date:** [October 31, 2020, 1:14pm UTC](https://forums.unrealengine.com/t/cant-seem-to-change-material-if-i-create-maerial-instance/473783/1 "2020-10-31T13:14:59Z")

</div>

Hello! I’m struggling for a while with seemingly a little issue.

On Event Construct of an Actor, a Plane Component holds a Material.  
I want to read the Display Name of a Parameter of that Material, to get some values out of the name.

This works perfectly, but I expected that if I change the Material to another, that has the same setup, they are the same instances, then I get the other texture’s name, and this all becomes a dynamic setup.

When I try to change the material, it doesn’t let me, it keeps using the original assigned material.  
This is the problem.

How could I do this? where is the error?  
I figured out that the Create Material Instance Node is denying the change, by excluding it from the event construct script, the material is changeable, but then I don’t know how to read the name of the Texture in the Parameter.

Please help xD

 ![320658-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/5/4450478fed495e4a0c2667835722f827ba73691e.png)

 ![320657-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/c/36c1534434ee4c3295880d6bbc2230859a359d42.png)  
 ![320658-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/5/4450478fed495e4a0c2667835722f827ba73691e.png)

---

<div class="post-metadata">

**Author:** ![vidaandras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vidaandras/32/878178_2.png) [@vidaandras](https://forums.unrealengine.com/u/vidaandras)\
**Post date:** [October 31, 2020, 1:21pm UTC](https://forums.unrealengine.com/t/cant-seem-to-change-material-if-i-create-maerial-instance/473783/2 "2020-10-31T13:21:57Z")

</div>

I forgot to mention, that I would like to have multiple instances of this Actor present in my Level, and I would like them to have different materials on that Component Plane. I can change the material in the Blueprint Editor, but then All of my Instances in the Level change to the New Material. I need them to be different.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 31, 2020, 1:29pm UTC](https://forums.unrealengine.com/t/cant-seem-to-change-material-if-i-create-maerial-instance/473783/3 "2020-10-31T13:29:58Z")

</div>

So I have a BP with a cube in it:

 ![320660-screenshot-5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/2/2f281a79eba3bd216cc9a52f864c5c9c01bd2b3a.jpeg)

 ![320691-screenshot-6.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/9/c69a50c797ca217cbabbf268e9d41bb53a721bba.jpeg)

 ![320692-screenshot-7.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/d/bcd53fe4226900abd6016c281d125bb7b2b4cbad.jpeg)

Seems to work. You’re trying to change the texture, right?

( You can change the material in the same way )

 ![320693-screenshot-8.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/a/a1a010d24ff582b373fd00ecdf026834c6af1f09.jpeg)

---

<div class="post-metadata">

**Author:** ![vidaandras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vidaandras/32/878178_2.png) [@vidaandras](https://forums.unrealengine.com/u/vidaandras)\
**Post date:** [October 31, 2020, 1:48pm UTC](https://forums.unrealengine.com/t/cant-seem-to-change-material-if-i-create-maerial-instance/473783/4 "2020-10-31T13:48:43Z")

</div>

DUDE THANK YOU!

Sometimes I don’t know the correct way to do things xD. So the solution was to Set the Texture with a visible variable outside, and then read the name of that to construct everything else.
