How get materials from static meshes?

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