As it seems, the texture name property serves multiple purposes in Babylon.js.
On the one hand it’s used as tree node item name in the inspector.
On the other hand it serves as url when parsing serialized texture data.
Since Texture.UseSerializedUrlIfAny is false by default, the texture name property has priority over the url property in the parsing process.
In our Combeenation system we have an asset server for textures, resulting in urls as texture names.
Finding certain textures in the inspector is really painful, as the front part is useless.
We added a functionality that crops this front path as soon as the texture gets created.
The inspector appearance is fine now, but the problem is, that serializing the scene and opening it in the sandbox results in missing textures, since the texture name doesn’t contain the root url anymore.
Now my suggestion is to create a dedicated texture property that is only responsible for naming the node tree item in the inspector, e.g. “displayName”
IMO displayName can be set to the name value initially and should be overwriteable any time later.


