I'm trying to set a mesh at runtime using:
- Code: Select all
player:setMesh ( "justin_sullivan" )
where the "justin_sullivan.mesh" file (along with the .ini, .skeleton & .skymat files and the relevant textures) is in an external folder that I refer to at runtime. When the code gets to this line, I receive the above error (though it didn't appear in red like a normal error?).
I created the .mesh etc. files from a .fbx file within Skyline (in a different project) and then copied all the files into my 'external' folder. The mesh works fine in the other project, so I'm assuming that I can't refer to a mesh unless it's been registered with Skyline? Is this right?
If that is the case, how can we refer to meshes etc. if they are going to be provided as DLC?
Thanks
Shando