how do you debug a material instance

hi

am working with a dynamic material instance
bit new to it so likely making mistakes still
how would you debug a material instance
in particular i am interested in certain values or parameters within the material instance
knowing them would make my life so much easier towards the end goal
and i cant simply set a breakpoint
can one read values or parameters out of material instances

thanks

  • you can debug inside the material:

  • and yes, you can read DMI params:

1 Like

maybe you can spare me some time
otherwise i will just work with what you provided me

how will i be able to read the absolute world position value / parameter within a dynamic material instance so that i can check and interpret the value

thanks

yes i have that
i want to “get” it or “read” it to see what the actual value is to debug

As in the first pic but v3.

thanks let me try

if you dont mind me asking
how do variables or the variable base work in material instances?
ie how do you set variables in materials
are debug related variables the only variables you can set for output in a material?
can you set a parameter so that you can again read it or get it from a blueprint?

Yes, as in the very first post.

how do you set variables in materials

Right click a scalar / vector / texture sample and convert:

Or right click in the graph and search for a parameter.

yes that i know
i mean, how do you set a variable or parameter in a material so that you are able to read it from a blueprint
other than debug parameters i dont see a parameter that will accept an input value
e.g a component mask or a sphere mask will accept an input
a debug parameter will accept an input
you cant read the output from a sphere mask from a blueprint
seems you can only read the output from a debug parameter from a blueprint

at least managed this now
it is the world location

and i have no idea about its value
need to look into it
clearly it is not world map one to one