1. getExternalObjectByComponentKey

加载构件数据,并组织成THREE.Mesh对象

名称 说明 类型 是否必须 示例
componentKey 构件key 字符串 String "M123_456"
返回值说明 类型 示例
返回Promise对象,成功回调参数为THREE.Group对象,失败参数表示失败原因 Promise

调用方式:

    /**
 * 加载构件数据,并组织成THREE.Mesh对象
 * @function getExternalObjectByComponentKey
 * @param { string }  componentKey 构件key
 * @return { Promise } 返回Promise对象,成功回调参数为THREE.Mesh对象,失败参数表示失败原因
 */
var promise = eoc.getExternalObjectByComponentKey("M123_456");
promise.then((mesh) => {
    console.log(mesh)
})
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2021 all right reserved,powered by Gitbook该文件修订时间: 2021-12-20 09:59:48

results matching ""

    No results matching ""