Set a mesh texture (SOLVED)

The following code works:

local atlas = resource.get_atlas(“/main/common/images/EDIT_common.a.texturesetc”)
local atlas_texture = atlas.texture
go.set(MESH_URL, “texture0”, hash(atlas_texture))

You need “texture0” and also to hash the texture got from the atlas.

Thanks to @jhonny.goransson for the great help as usual!

1 Like