Jump to content

The function findMaterialByPath()


photo

Recommended Posts

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

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:

Link to comment
×
×
  • Create New...