How to get Texture2d parameter values for the material

Hello.
I made Material for Additive blend mode Image.
But It have to make material instances for each texture images.
(100 textures need 100 material instances.)

So I want to make a widget, which can change texture parameter.
Texture can be replaced with the desired image.

  • My Material Parameter
    image

I tried to refer to extracting the parameter value from the video above,
but texture2d was different from float, so it was difficult to apply it.

What should I do?
Please help me. Thank you😂

In your material editor, hold T and press Left Click, a Texture2d node will be created.
Right-click on him and do Convert to Parameter:


Give him a name and use that same name in your SetTextureParameterValue name.

Oh, I’m a new user so I can’t embed image for reply…

In my topic’s last image,
[Set Texture Parameter Value] have parameter name already.
(And My Material Instance have Texture Parameter, with same name!)

I already do that, but It didn’t work… Please help :joy:

That weird, i will post mine, try to see if there any difference.

Material

Widget image

Calling event change colour

1 Like

It works!!!
You solved my problem! Thank you so much!! :joy::+1::+1::+1:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.