# How to toggle through textures on surface

**URL:** <https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144>\
**Category:** Rendering\
**Tags:** toggle, slide, unreal-engine, Blueprint, question\
**Created:** [June 27, 2016, 11:08am UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144 "2016-06-27T11:08:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_74fa6c76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_74fa6c76](https://forums.unrealengine.com/u/anonymous_user_74fa6c76)\
**Post date:** [June 27, 2016, 11:08am UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/1 "2016-06-27T11:08:16Z")

</div>

Hi everyone,

i am trying to add an interface in my project where i can toggle through different screencaptures as textures on a display (mesh) by clicking up and down. What I want is quite like a diashow.

Right now i found a workaround that quite works for me but is anything else then beautiful: I simply exchange the object. I initialize x materials, each for one slide and made a blueprint array that exchanges the material on my surface.  
That means, that i initialized all textures as materials individually and just make one visible at a time.

Now I was wondering wether there was a possibility to use dynamicMaterial as a function, or something different. I couldn’t quite find a similar problem, which confuses me, since i thought that it should be easily done. 😃

I hope you can help me,  
thanks and kind regards,  
Ivor 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcd9d04a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcd9d04a](https://forums.unrealengine.com/u/anonymous_user_dcd9d04a)\
**Post date:** [June 27, 2016, 11:29am UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/2 "2016-06-27T11:29:14Z")

</div>

hello

use dynamic material .

make a texture parameter

make a blueprint in widget with buttons

on buttons press an integer will add and set its materials texture parameter to something else.

is this what you are looking for? if yes , tell me i will post a pic with details.if not i will figure something else out , i did made something close to it so i know a lot of alternatives for this

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_74fa6c76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_74fa6c76](https://forums.unrealengine.com/u/anonymous_user_74fa6c76)\
**Post date:** [June 27, 2016, 12:07pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/3 "2016-06-27T12:07:39Z")

</div>

Thanks Prithvi Singh, the way i understand you, it actually sounds really good. Never really looked at widgets before so that might do the trick, so pictures would be awesome!

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcd9d04a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcd9d04a](https://forums.unrealengine.com/u/anonymous_user_dcd9d04a)\
**Post date:** [June 27, 2016, 12:47pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/4 "2016-06-27T12:47:10Z")

</div>

ok i will make it in an understandable way

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcd9d04a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcd9d04a](https://forums.unrealengine.com/u/anonymous_user_dcd9d04a)\
**Post date:** [June 27, 2016, 1:42pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/5 "2016-06-27T13:42:06Z")

</div>

for widgets see [this](https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/CreatingWidgets/)  
and [this](https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/)

for material instances see [this](https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/MaterialInstances/) and [this](https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/HowTo/Instancing/)

for material prameters see [this](https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/HowTo/Making_Parameters/)

**my actor to be changed**

 

 ![96251-zzzzzzz.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/5/735961b9b2ab2724de2cbae74aeda65a4b155284.jpeg)

my level blueprint

 ![96245-zzzzzz.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/c/6/ac61a956a533d436ca067bc174c57a574ba23554.jpeg)

my widget graph

 ![96247-zzzzwhynotz.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/e/f8e17955f51d5c110090e794d1de517a52e92092.jpeg)

 ![96249-zzzz.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/7/eb752d02c194f1d8172e94d3d07644df84a7e219.jpeg)

my widget in designer view

 ![96250-zzz2z.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/b/4eb37aa7f13e656d1f27f21dc335c61f29007a77.jpeg)

hope it helps ! cheers! (if not reply back)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcd9d04a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcd9d04a](https://forums.unrealengine.com/u/anonymous_user_dcd9d04a)\
**Post date:** [June 28, 2016, 1:38pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/6 "2016-06-28T13:38:17Z")

</div>

did you got it working?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_74fa6c76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_74fa6c76](https://forums.unrealengine.com/u/anonymous_user_74fa6c76)\
**Post date:** [June 28, 2016, 6:14pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/7 "2016-06-28T18:14:54Z")

</div>

Thanks for the fast reply, i did’t get to it yet and worked on a different problem first, but thanks in advance. I will work on it tomorrow and let you now! 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_74fa6c76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_74fa6c76](https://forums.unrealengine.com/u/anonymous_user_74fa6c76)\
**Post date:** [June 30, 2016, 1:14pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/8 "2016-06-30T13:14:31Z")

</div>

Hi so I got quite far just doing exactly what you did, but i don’t quite get what kind of type your material instance “Dynamicssss” is so you can connect it with both “Set Material” and “Set Texture Parameter Value” since both ask for diefferent types in my blueprint. Do you know what i mean?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcd9d04a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcd9d04a](https://forums.unrealengine.com/u/anonymous_user_dcd9d04a)\
**Post date:** [June 30, 2016, 1:33pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/9 "2016-06-30T13:33:15Z")

</div>

hey @anonymous\_user\_84b58533

it’s **material instance (refrence)**

do you want the projects zip file?  
will be helpful to you.

mail me here if you or anyone else want that zip. (didn’t found a way to attach it)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_74fa6c76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_74fa6c76](https://forums.unrealengine.com/u/anonymous_user_74fa6c76)\
**Post date:** [July 4, 2016, 12:49pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/10 "2016-07-04T12:49:59Z")

</div>

I think i am fine for now, we got it working 🙂 but thanks for everything!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcd9d04a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcd9d04a](https://forums.unrealengine.com/u/anonymous_user_dcd9d04a)\
**Post date:** [July 4, 2016, 3:18pm UTC](https://forums.unrealengine.com/t/how-to-toggle-through-textures-on-surface/362144/11 "2016-07-04T15:18:37Z")

</div>

Happy that you got it working! 🙂
