xiaoChen Posted August 12, 2022 Share Posted August 12, 2022 is this way to get skinmesh? i run editor debug Length is 0 nothing in the child. and why meshskinned load cant load guid?? what is this ,how to check my character is right? Link to comment
alexander Posted August 15, 2022 Share Posted August 15, 2022 Hi xiaoChen, ObjectMeshSkinned is not a component. It's a node. You can't find all nodes of type "ObjectMeshSkinned" this way. Use something like this: var anim = new List<ObjectMeshSkinned>(); var nodes = new List<Node>(); node.GetHierarchy(nodes); for (int i = 0; i < nodes.Count; i++) { if (nodes[i].Type == Node.TYPE.OBJECT_MESH_SKINNED) anim.Add(nodes[i] as ObjectMeshSkinned); } Best regards, Alexander 1 Link to comment
Recommended Posts