three-gltf-combine
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

three-gltf-combine

Install

#npm
npm install three-gltf-combine

#yarn
yarn add three-gltf-combine

# pnpm
pnpm add three-gltf-combine

# bun
bun add three-gltf-combine

Usage

If you want to combine gltf parts

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,
});

If you want to replace gltf parts

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,
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i three-gltf-combine

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.41 kB

Total Files

5

Last publish

Collaborators

  • juunini