Hi everyone,
The metadata are not readable in the Inspector V2. Maybe they shoud be “stringified”…
Thanks very much for your answers.
Boris
Hi everyone,
The metadata are not readable in the Inspector V2. Maybe they shoud be “stringified”…
Thanks very much for your answers.
Boris
cc @ryantrem
Seems to work with a simple test: Babylon.js Playground
@bvaisman do you have a repro?
Actually I think I found the issue. Does your metadata object have functions?
HI @ryantrem ,
Here’s one of my metadata. I don’t know exactly what you mean by “functions”.
Thanks for your answer.
Boris
json_test.zip (217.0 KB)
I downloaded this json, parsed it into an object, and set it as metadata on a node, and it shows as json in Inspector. I guess this is not what you are seeing? Are you able to repro in Playground?
Unfortunately no, i made the same, created a mesh and assign lmy JSON string as an object and it works.
But I’ve found another bug and maybe it is the same. The metadata are not refreshed when I click on another object. See below, I assume that the metadatas are not the same…

I think I have also noticed this metadata problem which sometimes, randomly, does not update when you swtich objects.
Sometimes we select an object that doesn’t have metadata, it updates, then when we come back to the object that has metadata, it remains empty and sometimes it updates correctly.
That’s definitely unexpected! If either of you have a repro in a playground please share, otherwise I will see if I can find a repro.
Small bug in some React code, and I have a fix in PR here: Inspector: Push updated metadata to react state by ryantrem · Pull Request #18029 · BabylonJS/Babylon.js