#npm
npm install three-gltf-combine
#yarn
yarn add three-gltf-combine
# pnpm
pnpm add three-gltf-combine
# bun
bun add three-gltf-combine
import { combineSkinnedMesh } from 'three-gltf-combine';
//...
const destination = parent.getObjectByName('your SkinnedMesh name') as THREE.SkinnedMesh;
const target = otherGLTF.getObjectByName('your SkinnedMesh name') as THREE.SkinnedMesh;
combineSkinnedMesh({
target,
destination,
parent,
});
import { replaceSkinnedMesh } from 'three-gltf-combine';
//...
const destination = parent.getObjectByName('your SkinnedMesh name') as THREE.SkinnedMesh;
const target = otherGLTF.getObjectByName('your SkinnedMesh name') as THREE.SkinnedMesh;
replaceSkinnedMesh({
target,
destination,
parent,
});