Jump to content

Unigine::Materials::removeMaterial error


photo

Recommended Posts

Hello,
I have a small problem that I don't understand why.

If I create a material like this:

this->unigineMaterial = meshBase->inherit(this->guid);

And later I want to unload this material en create a new material with the same guid like this :
Unigine::Materials::removeMaterial(this->guid, false, false);
this->unigineMaterial = meshBase->inherit(this->guid);

The engine crash (see image).
Could you please explain what I'm doing wrong ?
Thanks

error.png

Link to comment

Hi Silent,
I think that crash because the material is set to a mesh before...
I'll try to reproduce this behavior and be back to you.
Thanks

Link to comment
×
×
  • Create New...