# How do you change the texture on an object with blueprint?

**URL:** <https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428>\
**Category:** Rendering\
**Tags:** trigger, change, unreal-engine, Blueprint, question\
**Created:** [May 15, 2014, 7:56pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428 "2014-05-15T19:56:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![84rt-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@84rt-design](https://forums.unrealengine.com/u/84rt-design)\
**Post date:** [May 15, 2014, 7:56pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/1 "2014-05-15T19:56:42Z")

</div>

hi all ,

please i would like to know if its possible to make change texture to an object by using a click trigger or something like that ! thks a lot

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [May 15, 2014, 9:21pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/2 "2014-05-15T21:21:02Z")

</div>

Yes, via Texture Parameter in material which you can change in blueprint (or you can use different kind of parameter to change look of material, including one that could switch texture) in material or Set Material node (you would need 2 materials in this case)

---

<div class="post-metadata">

**Author:** ![84rt-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@84rt-design](https://forums.unrealengine.com/u/84rt-design)\
**Post date:** [May 19, 2014, 9:13am UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/3 "2014-05-19T09:13:31Z")

</div>

thanks for your answer, sorry ive just another question, is there is a tutorial for this, cause im realy newish for programming game.thks very much

---

<div class="post-metadata">

**Author:** ![SMillard\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SMillard\_1](https://forums.unrealengine.com/u/SMillard_1)\
**Post date:** [May 19, 2014, 9:48pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/4 "2014-05-19T21:48:58Z")

</div>

I also had some trouble trying to figure this out, but I finally made it work. Here is how I did it:

1. First you need to set up your material with a TextureSampleParameter2D (this will allow you to dynamically edit the materials texture during runtime).

![6603-mid_step1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/a/d5ab0fc2df2f0e8735d538de498b5486b9c418b5.jpeg)

1. In your blueprint you have to create a Dynamic Material Instance and set your actor(s) to use this new material (which is based on the material you made in 1). You can do this in the Construction Script (it should be done at the start of your game, or when your actor is spawned). Also, make sure the Element Index of SetMaterial matches the material you want to set on your actor (if you only have one material then just set it to 0).

 ![6604-mid_step2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/e/5ee9cf1a2d7150572100fdf01d1a2176291b4a4a.jpeg)

1. Now you can use SetTextureParameterValue to change the texture of the Dynamic Material Instance you created in 2.

(It seems I am only allowed to add two images here. The third image can be found in another comment on this page - dig down!)

---

<div class="post-metadata">

**Author:** ![SMillard\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SMillard\_1](https://forums.unrealengine.com/u/SMillard_1)\
**Post date:** [May 19, 2014, 9:50pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/5 "2014-05-19T21:50:16Z")

</div>

Let me know if this works for you, or if you have any questions.

---

<div class="post-metadata">

**Author:** ![84rt-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@84rt-design](https://forums.unrealengine.com/u/84rt-design)\
**Post date:** [May 20, 2014, 3:58pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/6 "2014-05-20T15:58:17Z")

</div>

woah thanks to you SMillard , i’m trying to make it but still complicate for me i don’ understand sens of Actor an Static mesh , does your blueprint setup is trigerable with a button ?

---

<div class="post-metadata">

**Author:** ![SMillard\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SMillard\_1](https://forums.unrealengine.com/u/SMillard_1)\
**Post date:** [May 21, 2014, 1:18am UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/7 "2014-05-21T01:18:56Z")

</div>

Your Actor is the object that has the material you want to change textures on. You can cast your Actor to a StaticMeshActor as shown in image 2 (this is done to get the StaticMeshComponent, which is the target of SetMaterial). Just use a variable to store your Actor (in image 2 it is called MyActor).

Step 1 and 2 must be done first. During runtime, when you are ready to change the texture on your material, you simply use Step 3 - this could be at the press of a button. I’m sure you can find a guide on how to set up a blueprint button somewhere in the Unreal 4 examples or on the forums. Right now I’m just using the event called when the player presses the fire button (InputFire event).

---

<div class="post-metadata">

**Author:** ![Ue4QuickTips](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ue4QuickTips](https://forums.unrealengine.com/u/Ue4QuickTips)\
**Post date:** [May 21, 2014, 7:41am UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/8 "2014-05-21T07:41:11Z")

</div>

all you can just use the set material like so…

 ![6706-set_material.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/4/3a44c00a29a6956952c5a14c7e4b3a38ea3acc5e.png)

---

<div class="post-metadata">

**Author:** ![84rt-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@84rt-design](https://forums.unrealengine.com/u/84rt-design)\
**Post date:** [May 22, 2014, 10:03am UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/9 "2014-05-22T10:03:22Z")

</div>

thks you too M.Wardle. change material is what i was searching for too .

do you think it is possible that if i have an object like a board, can i make an event change material with a library of material completely different .

thannnks

---

<div class="post-metadata">

**Author:** ![84rt-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@84rt-design](https://forums.unrealengine.com/u/84rt-design)\
**Post date:** [May 22, 2014, 2:20pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/10 "2014-05-22T14:20:29Z")

</div>

ok finaly i made this ! it s look great and works i can switch material on this static mesh with a loop ,but created in level blue-print ,now i have to make it in an actor blue-print. with trigger

 ![6811-blueprint.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/2/5628045e4db4c550e82e93f2edfeb76f107af1dc.jpeg)

---

<div class="post-metadata">

**Author:** ![84rt-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@84rt-design](https://forums.unrealengine.com/u/84rt-design)\
**Post date:** [May 22, 2014, 6:18pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/11 "2014-05-22T18:18:38Z")

</div>

so i tryed to make in a custom blueprint but impossible !!! some help !

---

<div class="post-metadata">

**Author:** ![Shinijami](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shinijami](https://forums.unrealengine.com/u/Shinijami)\
**Post date:** [July 21, 2014, 10:06pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/12 "2014-07-21T22:06:11Z")

</div>

This works when I drag in things from the architecture tab but not with things I bring in with Geometry. Any idea why?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9d6f105](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9d6f105](https://forums.unrealengine.com/u/anonymous_user_b9d6f105)\
**Post date:** [March 11, 2015, 2:41am UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/13 "2015-03-11T02:41:54Z")

</div>

Thx so much man!! 😃

---

<div class="post-metadata">

**Author:** ![Discmage\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Discmage\_1](https://forums.unrealengine.com/u/Discmage_1)\
**Post date:** [April 21, 2015, 5:56pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/14 "2015-04-21T17:56:23Z")

</div>

Unfortunately the 3rd image above is not available so I cannot see how the SetTextureParameterValue is used.

Many people seem to be using Set material, but I assume this is for the WHOLE material and not a texture within the material…is this correct? All I would like to do is set one texture inside a material to other options…mainly for variant cosmetic item options changing a mask for decals (in my example).

Also, If I am using a Dynamic Material Instance Constant…do I still need to create the dynamic texture in the Construction script?

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Discmage\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Discmage\_1](https://forums.unrealengine.com/u/Discmage_1)\
**Post date:** [April 21, 2015, 8:02pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/15 "2015-04-21T20:02:41Z")

</div>

Here is my construction and event Blueprint so far trying to emulate what you guys have going… I am trying to get the material instance from this objects blueprint (a cosmetic item) so I can make variants with different masks. The colour variants still work, but the mask doesn’t change. Any thoughts? Thanks in advance.

 ![39600-variants_01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/0/49086d11fdd9e2d529ee86a496ef4e35f584bdb8.jpeg)

---

<div class="post-metadata">

**Author:** ![SMillard\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SMillard\_1](https://forums.unrealengine.com/u/SMillard_1)\
**Post date:** [April 21, 2015, 9:27pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/16 "2015-04-21T21:27:17Z")

</div>

Hi Discmage,

It’s some time since I worked with this, and I’ve been away from UE4 for some time. Also, I don’t have time to dig into it thoroughly right now, so I’m not sure I can help you 100%. However, I found image 3 for you, and I think what you are missing is the correct parameter name (“Texture\_sample\_2d”), to match what you set up in image 1. That is, if you did the same as I did in image 1 of course. Let me know if this helps at all.

Also, I am pretty sure you still need to create the material in the constructor; since this is were you actually create the instance of the material. Otherwise I’m guessing it would be null.

![39605-mid_step3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/0/7801b91b5bf131b911653cca34e93470866b8238.jpeg)

---

<div class="post-metadata">

**Author:** ![Discmage\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Discmage\_1](https://forums.unrealengine.com/u/Discmage_1)\
**Post date:** [April 23, 2015, 5:19pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/17 "2015-04-23T17:19:59Z")

</div>

Thanks for that third image…I got there in the end! I was doing a few things wrong, some ridiculously simple, others not so much…

The only catch now is to make both the cosmetic colours work AND the decals…as the colours didn’t for some reason. Thanks for all your help! I’ll probably post the results here once I have it all done so others can use the information.

---

<div class="post-metadata">

**Author:** ![Vaheva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaheva/32/963466_2.png) [@Vaheva](https://forums.unrealengine.com/u/Vaheva)\
**Post date:** [April 4, 2017, 7:51pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/18 "2017-04-04T19:51:15Z")

</div>

@Andrew Wardle post good and only answer. You can select it as solved.

---

<div class="post-metadata">

**Author:** ![MrGoatsy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrgoatsy/32/918697_2.png) [@MrGoatsy](https://forums.unrealengine.com/u/MrGoatsy)\
**Post date:** [April 4, 2017, 10:43pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/19 "2017-04-04T22:43:07Z")

</div>

Please make your own question instead.

---

<div class="post-metadata">

**Author:** ![adam4designss](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/adam4designss/32/1113544_2.png) [@adam4designss](https://forums.unrealengine.com/u/adam4designss)\
**Post date:** [August 19, 2023, 7:39pm UTC](https://forums.unrealengine.com/t/how-do-you-change-the-texture-on-an-object-with-blueprint/283428/20 "2023-08-19T19:39:33Z")

</div>

IDO ALL STEPS MY STRING TELL ME THAT :SELECT IS DONE BUT IT IS NOT APPER  
BUT I FOUND THIS IWILL USED 🙂 [Runtime Image Loader in Code Plugins - UE Marketplace (unrealengine.com)](https://www.unrealengine.com/marketplace/en-US/product/runtime-image-loader/reviews?sessionInvalidated=true)
