MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / processAnimationClip

Function processAnimationClip

src/core/resourceProcessor.js:430–449  ·  view source on GitHub ↗

* 处理动画资源 * @param {Object} data 动画数据 * @param {string} key 键名

(data, key)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected