Bluelikesky Posted May 13 Share Posted May 13 In Visual Studio,using c++, i use the mesh of a model (mars.fbx created in Blender) with the instructions: Unigine::ObjectMeshStaticPtr obj; Unigine::MeshPtr mesh; mesh = Unigine::Mesh::create(); mesh->load("mars.fbx/sphere.mesh"); obj = Unigine::ObjectMeshStatic::create(mesh); obj->setPosition(Unigine::Math::Vec3(0, 0, 0)); When i run the executable in Visual Studio,ii's all ok. But in the final build, there is the message Can't open "mars.fbx/sphere.mesh" file on the screen. But the mesh file and the meta file are present in the .runtime folder in the final build. I need help Link to comment
aezakku Posted May 15 Share Posted May 15 Hello! Apparently the problem is that you didn't build the app for release. To do this, to the left of the Local Windows Debugger button, select the Release item in the drop-down list and press Ctrl+B. After that, try to build your application from the editor again. With best regards, from the UNIGINE team. => Link to comment
Bluelikesky Posted May 16 Author Share Posted May 16 Thank you ,now everything works !!! Link to comment
Recommended Posts