Derived from the cocosair-2d-subsystems skill and its canonical docs/source pointers; reorganized on 2026-10-11. Source annotations below identify repository inputs, not files guaranteed to ship to npm consumers.
Contracts
- The bundle export line is the whole public face. The single
export { ... }block ofbuild/cocosair.module.js(currently:161574) is the only name list;MotionStreak2Dis absent fromsrc/entirely, the class iscc.MotionStreak(src/cocos/particle-2d/motion-streak-2d.ts:68,:73) re-exported asMotionStreak(src/cocos/particle-2d/index.ts:31-37). Full symbol list in each reference file. - Spine is BLOCKED at the backend and asset layer, not the API layer:
src/exports/spine.ts:3and:5givespplusloadWasmModuleSpine, but the shim installs warn-and-return-null stubs overspine.wasmUtil(src/cocos/spine/lib/air-spine-instantiate-js.ts:26-52), soSkeletonData.getRuntimeData()returns null (src/cocos/spine/skeleton-data.ts:199-237) andSkeleton._updateSkeletonData()bails silently atsrc/cocos/spine/skeleton.ts:791. AwaitingloadWasmModuleSpineproves nothing (src/cocos/spine/index.ts:127-136). See spine.md. - DragonBones is runnable and needs three objects plus one key: atlas asset
atlasJsonparses text (src/cocos/dragon-bones/DragonBonesAtlasAsset.ts:53-59) andtexturewants aTexture2D(:86-90); skeleton viadragonBonesJsontext (src/cocos/dragon-bones/DragonBonesAsset.ts:58);asset.init(factory, atlasUuid)returns the armature key (:99-128).armatureis a METHOD (src/cocos/dragon-bones/ArmatureDisplay.ts:1469),playAnimation(name, 0)is play-once so loop needs-1(:1269), andpremultipliedAlphadefaults tofalse(:412). See dragonbones.md. - TiledMap builds its whole map from a
TiledMapAssetbag of parallel arrays handed toTMXMapInfo(src/cocos/tiledmap/tiled-map.ts:340-388). A runtime cell edit viasetTileGIDAt(gid, x, y, flags)(src/cocos/tiledmap/tiled-layer.ts:693-711) sets only_cullingDirty(:714-731) which is not render-data dirty, so refresh needsmarkForUpdateRenderData()(src/cocos/2d/framework/ui-renderer.ts:431-433) or node reactivation (examples/tiledmap-basic/main.js:396-405). Object queries readclass, geometry reads the shape enum (src/cocos/tiledmap/tiled-object-group.ts:179). See tiledmap.md. - ParticleSystem2D reads the plist, not your assignments:
parsePlist(src/cocos/asset/asset-manager/parser.ts:63) ->asset._nativeAsset->custom = false+filefires_initWithDictionary(src/cocos/particle-2d/particle-system-2d.ts:922-948). The lifespan key isparticleLifespan(:1047) andblendFuncSource/blendFuncDestinationland in gfxBlendFactorslots capped at 14 (:1062-1063,src/cocos/gfx/base/define.ts:505-521), so Creator's 770 and 1 draw nothing. See particle-2d.md. - Billboard is a
scene.Modelwith a four-vertex quad (src/cocos/particle/billboard.ts:243-276) re-exported fromsrc/air/index.ts:30, needing a 3D camera visibility not the UI one.widthandheightdefault to 0 (:65,:88) and travel withrotationthrough onecc_size_rotationVec4(:190), so node scale is ignored and an unsized billboard is invisible; the effect has one technique sotechniqueclamps to 0 (:137-155) andonDestroydrops but never destroys the app-owned texture (:214-226). See billboard.md.