# 高网络丢包率下模拟端移除GameplayCue失败

**URL:** <https://forums.unrealengine.com/t/gameplaycue/766317>\
**Category:** 简体中文 (Simplified Chinese)\
**Tags:** Network, unreal-engine, question\
**Created:** [February 8, 2023, 9:59am UTC](https://forums.unrealengine.com/t/gameplaycue/766317 "2023-02-08T09:59:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EternityPOI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EternityPOI](https://forums.unrealengine.com/u/EternityPOI)\
**Post date:** [February 8, 2023, 9:59am UTC](https://forums.unrealengine.com/t/gameplaycue/766317/1 "2023-02-08T09:59:13Z")

</div>

情况是一个GA添加一个GC后，在高网络丢包率下(NetEmulation.PktLoss 80)，结束GA，自主端GC结束，模拟端GC未结束，最后发现出现这种情况时，是没有调用到结构体“FActiveGameplayCue”中的“PreReplicatedRemove”方法，该方法仅在“NetSerialization.h”中调用了一次，不明白的是该数组(FActiveGameplayCueContainer ActiveGameplayCues;)是已经复制到客户端了，也是正确的空数组，为什么没有调用该调用的"PreReplicatedRemove"方法，希望有知道的大佬指点一下，谢谢

---

<div class="post-metadata">

**Author:** ![scotzeng](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scotzeng](https://forums.unrealengine.com/u/scotzeng)\
**Post date:** [December 30, 2024, 3:56pm UTC](https://forums.unrealengine.com/t/gameplaycue/766317/2 "2024-12-30T15:56:09Z")

</div>

兄弟，别用GC了，不是太好用（手动狗头）。这里的实现有漏洞，svr上add了马上remove的情况下，实际上数组变化都可能对客户端都没感知了（属性复制无变化），但activate又是走的rpc，这种情况下就会activate一次无法remove了。本质问题是remove和activate的触发方式都不对齐。
