Highlight selected bone in inspector

it will help us to understand the bone hieranchy more easily if we can inspect individual bone with visual highlight on the scene.

We know which mesh the current bone bind to, it would be easy to add the mesh to the glow layer or show the bounding box of it.

seems there’s no way to get the associated mesh in bone class?

There’s no associated mesh per see: a bone does not have hold a pointer to a mesh. Meshes are pointing to bones through their matrixIndices attribute and multiple meshes can point to the same bone.

You can see bones and weights by clicking on the mesh itself and selecting “Display BoneWeights” in the Debug section: