# Interface GLTF

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()` 即可播放动画。

interface GLTF {
animations: AnimationClip[];
asset: {
copyright?: string;
extensions?: any;
extras?: any;
generator?: string;
minVersion?: string;
version?: string;
};
cameras: Camera[];
parser: GLTFParser;
scene: GLTFObject;
scenes: GLTFObject[];
userData: any;
}

- Defined in lib/gltf-loader/index.ts:21

##### Index

### Properties

animations
asset
cameras
parser
scene
scenes
userData

## Properties

### animations

animations: AnimationClip[]

- Defined in lib/gltf-loader/index.ts:22

### asset

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

- Defined in lib/gltf-loader/index.ts:26

### cameras

cameras: Camera[]

- Defined in lib/gltf-loader/index.ts:25

### parser

parser: GLTFParser

- Defined in lib/gltf-loader/index.ts:34

### scene

scene: GLTFObject

- Defined in lib/gltf-loader/index.ts:23

### scenes

scenes: GLTFObject[]

- Defined in lib/gltf-loader/index.ts:24

### userData

userData: any

- Defined in lib/gltf-loader/index.ts:35