Let’s say I have the reference of a material in the editor [via right click, copy reference]. And I have a static mesh.
Using the function SetMaterial() of the static mesh component, the function takes a UMaterialInterface pointer type as a parameter.
How can I use the material reference copied from the editor and change the mesh’s material? I didn’t find an immediate set material function in UMaterialInterface, and I am not familiar with materials in cpp at all.