Options
All
  • Public
  • Public/Protected
  • All
Menu

GLTFLoader 返回数据

description

一般情况下,gltf.scene 为模型对象,直接通过 five.scene.add(gltf.scene) 即可添加到场景 Five 的模型单位 1 为 1米,载入的模型单位标准不一,请自行 scale。 如果涉及模型内置动画,GLTF 已经帮你封装了,通过 gltf.animations 可以获取动画帧。gltf.scene.mixer 为对应的 动画混合器。 通过 gltf.scene.mixer.clipAction(gltf.animations[0]).play() 即可播放动画。

Hierarchy

  • GLTF

Index

Properties

animations

animations: AnimationClip[]

asset

asset: { copyright?: string; extensions?: any; extras?: any; generator?: string; minVersion?: string; version?: string }

Type declaration

  • Optional copyright?: string
  • Optional extensions?: any
  • Optional extras?: any
  • Optional generator?: string
  • Optional minVersion?: string
  • Optional version?: string

cameras

cameras: Camera[]

parser

parser: GLTFParser

scene

scene: GLTFObject

scenes

scenes: GLTFObject[]

userData

userData: any