【BUG反馈】018 Online 客户端触发器重复触发bug

[复制链接]
364 |0
VErgis 发表于 2022-12-16 10:46:20 | 显示全部楼层 |阅读模式
场景结构:
https://sakura-build.233leyuan.com/online/customer/community/1671158427859.PNG触发器网络状态为C only
取消静态(无影响)
其余外部参数保持默认

脚本逻辑(最小元):
private _trigger: Gameplay.Trigger;    protected async onStart(): Promise {        if (!Gameplay.isClient()) {            return;        }        this._trigger = (await Core.GameObject.asyncFind(triggerGuid));        this._trigger.ready().then(() => {            console.log(`@@@Trigger!!!`);            this._trigger.onEnter.add((other: Core.GameObject) => {                console.log(`@@@ ${other.guid}`);            });        });    }bug演示&说明:
当触发器为C only时,玩家进入时本客户端触发反馈正常,但其他客户端无法正确处理其他玩家的onEnter、onLeave行为(偶),并出现重复触发(必)2~4次;同时存在当玩家速度足够慢时,在边界发生'颗粒化的反复触发的情况。

回复

使用道具 举报

热门版块
快速回复 返回顶部 返回列表