I need to find out (with Javascript) how to determine the parent object that a Skinned Mesh Renderer component is attached to.
I'm instantiating some character prefabs and the Skinned Mesh Renderer isn't always attached to the same bone in the character heirarchy, so I want to be able to determine which bone object actually contains the Skinned Mesh Renderer.
I can find it no problem with "characterObject.GetComponentInChildren(SkinnedMeshRenderer);" but once I do that I need to know which actual bone in the character contains that component.
At least, I think that's what you're talking about. If you actually want a parent object, and not the Game Object that has the Skinned Mesh Renderer attached, then you can use