* 处理动画资源 * @param {Object} data 动画数据 * @param {string} key 键名
(data, key)
| 428 | |
| 429 | this.sceneAssets.push(JSON.stringify(doc)); |
| 430 | this.enqueueWrite(dir, filename, doc); |
| 431 | |
| 432 | const uuid = this.decodeMaybe(uuidKey) || uuidKey; |
| 433 | this._handledUuids.add(String(uuid)); |
| 434 | this.enqueueWrite(dir, `${filename}.meta`, { |
| 435 | ver: '1.2.7', |
| 436 | uuid, |
| 437 | optimizationPolicy: 'AUTO', |
| 438 | asyncLoadAssets: false, |
| 439 | readonly: false, |
| 440 | subMetas: {}, |
| 441 | }); |
| 442 | |
| 443 | if (global.verbose) { |
| 444 | logger.debug(`Scene: ${filename} (${doc.length} objects, uuid=${uuid})`); |
| 445 | } |
| 446 | }, |
| 447 | |
| 448 | writePrefabDocument(doc, uuidKey) { |
| 449 | const name = (doc[0] && doc[0]._name) || 'Prefab'; |
| 450 | const uuid = this.decodeMaybe(uuidKey) || uuidKey; |
| 451 | this._handledUuids.add(String(uuid)); |
| 452 | this.prefabs.push(name); |
nothing calls this directly
no outgoing calls
no test coverage detected