How to toggle through textures on surface

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. :smiley:

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

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

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 :slight_smile:

ok i will make it in an understandable way

for widgets see this
and this

for material instances see this and this

for material prameters see this

my actor to be changed

my level blueprint

my widget graph

my widget in designer view

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

did you got it working?

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! :slight_smile:

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?

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)

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

Happy that you got it working! :slight_smile: