how can i use textures in c++?

Hello, i create many terrains with a c++ function (the function reads different parameters and create the terrain), those terrains have different height in different point(different z ), i need to apply different texture as a z value interval. for example 0-100, 100-300…etc but i do not apply texture in c++ and

how can i apply textures using c++? and , how can i apply diferrent texture as z value?

thank you.

My guess is that you’ll have to create a material. The material will handle the “texturing” of the terrain. If needed, you can send in parameters to the material as well.

thank, the idea is create a material using blueprint, and in my code c++ , link the terrain with the material, ? i am going to try, is there a guide to create a material?