Bluelikesky Posted May 13, 2023 Posted May 13, 2023 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
aezakku Posted May 15, 2023 Posted May 15, 2023 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. =>
Recommended Posts