Is it possible to set the image of a mesh (tex property) to the texture of an atlas?
I have tried to get the following
local atlas = resource.get_atlas(ATLAS_URL)
local atlas_texture = atlas.texture
go.set(MESH_URL, “tex”, atlas_texture)
I can confirm that the atlas data and the atlas_texture are correct. But the last line gives
ERROR:GAMEOBJECT: Properties can not be of type ‘string’.
ERROR:SCRIPT: main/play/play.script:255: the property ‘tex’ of ‘/TEST_mesh_atlas#mesh’ must be a number
Any help? What am I doing wrong?