如视 Five SDK
    Preparing search index...

    Interface GLTF

    GLTFLoader 返回数据

    一般情况下,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;
    }
    Index

    Properties

    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