10000 [spine] 事件值 DISPOSE 和 COMPLETE 在 js/jsb 和 原生环境 不一致. · Issue #18671 · cocos/cocos-engine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[spine] 事件值 DISPOSE 和 COMPLETE 在 js/jsb 和 原生环境 不一致. #18671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
finscn opened this issue Apr 25, 2025 · 1 comment
Closed
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team
Milestone

Comments

@finscn
Copy link
Contributor
finscn commented Apr 25, 2025

Cocos Creator version

3.8.6

System information

all

Issue description

cocos/spine/index.tscocos/spine/index.jsb.ts 文件里

DISPOSE = 3,
COMPLETE = 4,

但是在 spine/lib/spine-core.js 文件里 是 反过来的.

    e = spine.EventType = {
        start:0,
        interrupt: 1,
        end: 2,
        complete: 3,
        dispose: 4,
        event: 5
    };

native/cocos/editor-support/spine/3.8/spine/AnimationState.hnative/cocos/editor-support/spine/4.2/spine/AnimationState.h 里 也是反过来的...

目测 ts里的是错的.


另外 其实 我觉得 34 ,43 都不太好. 因为按照实际触发顺序是

start
complete
end
dispose

所以可能 complete = 2, end = 3, dispose = 4 更好.

Relevant error log output

No response

Steps to reproduce

.

Minimal reproduction project

No response

@finscn finscn added Bug Needs Triage Needs to be assigned by the team labels Apr 25, 2025
@bofeng-song
Copy link
Contributor

感谢反馈,这个之前只改了spine-core的,遗漏了index这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

2 participants
0