Questions about the FBX model

When I imported the FBX model, the original FBX had multiple models, but there was only one model under the PlayCanvas hierarchy. The model viewer could still identify the hierarchy, and mouse cursor over the model could also identify the corresponding sub-model. How could I operate the sub-model by code? Or by what means

There’s a couple of ways to do this. You can look for it by name at runtime using https://developer.playcanvas.com/en/api/pc.Entity.html#findByName. That will give you the graph node so you can change the material or hide it for example.

Or you can use our new feature that imports the hierarchy into the scene in the Editor: Importing models with hierarchy is now in soft launch! 🚀