feat(assets): expose pose graph enter info, drag handlers and stash references - #1
Merged
Changdw merged 2 commits intoSep 3, 2026
Conversation
…eferences - derive pose node enter info (state-machine / animation-blend / stash) without the editor-only `getEnterInfo` prototype methods - add `queryPoseGraphAssetDragHandlers` and the `create-pose-node-on-asset-drag` command to create motion pose nodes from dropped assets - add `queryStateMachineComponentTypes` for state machine component menus - count layer stash references via `visitStashReferences` - add `set-transition-condition-binding-class` and `set-transition-event-binding` commands with transition condition binding dumps and event binding fields Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Changdw
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
为 Pink Animation Graph 的全量编辑能力提供 cocos-cli 侧支持:
state-machine/animation-blend/stash):引擎getEnterInfo仅在EDITOR下安装,CLI 运行时改为按节点属性等价推导,支撑双击进入子图导航。queryPoseGraphAssetDragHandlers查询与create-pose-node-on-asset-drag命令:按资产类型返回拖拽 handler 清单,拖入动画剪辑可一步创建携带 clip 的运动节点。queryStateMachineComponentTypes:返回可挂载到状态机状态的StateMachineComponent类名清单。referenceCount(经visitStashReferences统计),供删除确认提示使用。set-transition-condition-binding-class与set-transition-event-binding命令;条件视图增加bindingClass,过渡视图增加startEvent/endEvent。cocos-cli-typesdts 声明与快照,并补齐对应测试。验证结果
npx jest src/core/assets/test/animation-graph-service.test.ts:13/13 通过(覆盖 enterInfo、拖拽 handler、组件类型查询、stash 引用计数、绑定类切换与事件绑定等新增用例)。looopmax/PinK@feat/animation-graph)已联调:扩展typecheck与 node 测试全绿,npm run compile通过。影响范围
@cocos/cocos-cli-types类型与 assets 域新增 API/命令,均为增量,无既有行为变更。