Hi! im trying to get the material from my static mesh and doesn’t work I dont understand why, looks realy logical Another thing is the blueprint need can modify for individual instances
How many materials do you have on your mesh? I am asking because you set your indices to 1, but if there is only 1 material you have to use index 0.
1 Like
i just have a one material, but changing the idex material doesn’t work too
You have to set MaterialIndex and ElementIndex => 0 if you just have 1 material(slot).
Edit: Can you show the blueprint content (DefaultSceneRoot, Mesh, etc…)? I am asking because the GetMaterial source looks wrong. And you can also always use a PrintString to debug. E.g. use a PrintString after the GetMaterial to show the DisplayName. Does it get printed to screen?
well i’ll try, I was used a print strings but not work, to test it I need to hit play button? or in the editor will show me the string?
You have to press Play