Click .glb model issue

There are multiple objects in my .glb model file. How can I read the object I clicked and change the frame and color of the object when I click it?

All the methods I’ve tried seem to only change the overall frame.