Jump to content

[SOLVED] Unigine 2.15.1 Unigine::Materials::loadMaterial and Unigine::Materials::findMaterialByPath return nullptr


photo

Recommended Posts

Hello,

 

I have saved a material by using Material::createMaterialFile into a mounted system Temp directory.

virtual an absolute path is C:\Users\svesenmayer\AppData\Local\Temp\MyApplication.

The file is there but when I want to load/find the material by Unigine::Materials::loadMaterial / Unigine::Materials::findMaterialByPath it returns a null pointer.

 

What am I doing wrong?

 

Regards Sebastian

Link to comment

Hi silent,

Found out that FileSystemMount has been executed later in our code.

File has been written but Unigine could not add it to the virtual file system in that moment, so it couldn't be loaded.

We are still in migration process to 2.15.1 where we need to change all material access, so bugs on our side may happen because it changed a lot.

This can be closed I guess.

Thanks.

 

Link to comment
  • silent changed the title to [SOLVED] Unigine 2.15.1 Unigine::Materials::loadMaterial and Unigine::Materials::findMaterialByPath return nullptr
×
×
  • Create New...