Material::getPath() bug


Recommended Posts

Hi !

I was working with materials when I ran into a bug with the getPath() function.

I expect the getPath() function to give me the current material's path.


  1. Create a material.
  2. Set a path to the current material with setPath(const* char path)
  3. Print material->getPath()

Expected : the good path

What I get bug_mat.png.f121fcc30279aa82b511efdd02d29d91.png

I work on Unigine 2.10 and 2.9.

Here is my code : 


Or am I using it wrong maybe ?


Antoine YVAN

Link to post

Hello Antonie,

It's a file system bug, unfortunately.

There's a workaround:

Unigine::Log::message("Path %s\n", Unigine::FileSystem::getVirtualPath(material->getFileGUID()).get());

We'll address this issue in the next version.

Sorry for the inconvenience.

  • Like 1

How to submit a good bug report
FTP server for test scenes and user uploads:

Link to post

Workaround is working as expected, thanks !

Link to post