报错信息如下
TypeError: Cannot set properties of null (setting 'renderObject')
AtlasAttachmentLoader.loadSequence
E:/cocos/src/AtlasAttachmentLoader.ts:57
54 | let attachment = new RegionAttachment(name);
55 | if (sequence != null) {
56 | this.loadSequence(name, path, sequence);
57 | }
| ^ 58 | else {
59 | let region = this.atlas.findRegion(path);
60 | if (!region)
View compiled
AtlasAttachmentLoader.newRegionAttachment
E:/cocos/src/AtlasAttachmentLoader.ts:65
62 | region.renderObject = region;
63 | attachment.region = region;
64 | }
65 | return attachment;
| ^ 66 | }
67 | newMeshAttachment(skin, name, path, sequence) {
68 | let attachment = new MeshAttachment(name);
View compiled
SkeletonBinary.readAttachment
E:/cocos/src/SkeletonBinary.ts:307
304 | box.worldVerticesLength = vertexCount << 1;
305 | box.vertices = vertices.vertices;
306 | box.bones = vertices.bones;
307 | if (nonessential)
| ^ 308 | Color.rgba8888ToColor(box.color, color);
309 | return box;
310 | }
View compiled
SkeletonBinary.readSkin
E:/cocos/src/SkeletonBinary.ts:280
277 | let sequence = this.readSequence(input);
278 | if (!path)
279 | path = name;
280 | let region = this.attachmentLoader.newRegionAttachment(skin, name, path, sequence);
| ^ 281 | if (!region)
282 | return null;
283 | region.path = path;
View compiled
SkeletonBinary.readSkeletonData
E:/cocos/src/SkeletonBinary.ts:204
201 | let parent = skin.getAttachment(linkedMesh.slotIndex, linkedMesh.parent);
202 | linkedMesh.mesh.timelineAttahment = linkedMesh.inheritTimeline ? parent : linkedMesh.mesh;
203 | linkedMesh.mesh.setParentMesh(parent);
204 | if (linkedMesh.mesh.region != null)
| ^ 205 | linkedMesh.mesh.updateRegion();
206 | }
207 | this.linkedMeshes.length = 0;
View compiled
AppSpine.initialize
E:/cocos/ming/src/components/ComboParts/ComboParts.jsx:32
29 | let skeletonBinary = new spine.SkeletonBinary(atlasLoader);
30 | console.log(assetManager.require("long.skel"))
31 | console.log(skeletonBinary.readSkeletonData)
32 | this.skeletonData = skeletonBinary.readSkeletonData(assetManager.require("long.skel"));
| ^ 33 | this.skeleton = new spine.Skeleton(this.skeletonData);
34 | let stateData = new spine.AnimationStateData(this.skeletonData);
35 | this.state = new spine.AnimationState(stateData);
View compiled
waitForAssets
E:/cocos/src/SpineCanvas.ts:111
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error. Click the 'X' or hit ESC to dismiss this message.