zhengwenxin Posted March 19, 2018 Share Posted March 19, 2018 Hi , Is somebody have ever use the function findMaterialByPath(const char* path)? I used it like below: Unigine::Materials::get()->findMaterial("D:/aaa/Media1.mat"); But it return null. Can somebody give me a help ? Link to comment
silent Posted March 20, 2018 Share Posted March 20, 2018 Hi Zheng, Is D:\aaa\ directory known for the engine? You can try to specify additional -data_path entry on engine startup in order to explicitly set the additional path for the content. For example, your launch parameters may look something like this: main_x64.exe -data_path ../ -data_path D:/aaa/ -data_path C:/test/dir1/ Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts