cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

[Spine] 没法调用EventTimeline.getEvents 接口 Cannot call EventTimeline.getEvents due to unbound types

Open AILHC opened this issue 1 year ago • 0 comments

Cocos Creator version

3.8.4

System information

Windows 10

Issue description

private _collect_one_anim_info(ani: sp.spine.Animation, info: ISpineCollectInfo) {
        console.info('process anim : ', ani.name);
        let ani_info: ISpineAniInfo = {};
        info[ani.name] = ani_info;
        ani_info.duration = ani.duration;

        const timelines = ani.timelines;
        for (const one of timelines) {
            if (one instanceof sp.spine.EventTimeline) {
                for (const one_evt of one.events) {
                    if (one_evt.intValue < 0) {
                        ani_info.evts = ani_info.evts || {};
                        ani_info.evts[one_evt.intValue] = one_evt.time;
                    }
                }

            }
        }
    }

Relevant error log output

message : "Cannot call EventTimeline.getEvents due to unbound types: PN5spine6VectorIPNS_5EventEEE" name : "UnboundTypeError" stack : "UnboundTypeError: Cannot call EventTimeline.getEvents due to unbound types: PN5spine6VectorIPNS_5EventEEE\n

Steps to reproduce

message : "Cannot call EventTimeline.getEvents due to unbound types: PN5spine6VectorIPNS_5EventEEE" name : "UnboundTypeError" stack : "UnboundTypeError: Cannot call EventTimeline.getEvents due to unbound types: PN5spine6VectorIPNS_5EventEEE\n

Minimal reproduction project

No response

AILHC avatar Oct 23 '24 07:10 AILHC